SDLNet.TCPSocket.TCPSocket:
Description:
public void TCPSocket (
SDLNet.IPAddress ip)
Open a TCP network socket If ip.host is INADDR_NONE or INADDR_ANY, this creates a local server socket on the given port, otherwise a TCP connection to the remote host and port is attempted.
Parameters:
ptr: |
The address passed in should already be swapped to network byte order (addresses returned from SDLNet_ResolveHost() are already in the correct form).
|
Returns:
The newly created socket is returned, or null if there was an error.