Wrap wsock32 in an if guard like this to prevent importing missing functions on macOS (Win32 is True for both 32 and 64 bit Windows):
#If Win32 Then
' imports
#End If
Add a similar file for macOS, to allow for socket connections there.
Then rename TcpServer to TcpServerWindows, add a superclass ITcpServer and ITcpClient and select the appropriate tcp server/client based on the operating system.
Wrap
wsock32in an if guard like this to prevent importing missing functions on macOS (Win32isTruefor both 32 and 64 bit Windows):Add a similar file for macOS, to allow for socket connections there.
Then rename
TcpServertoTcpServerWindows, add a superclassITcpServerandITcpClientand select the appropriate tcp server/client based on the operating system.