- Timestamp:
- Nov 16, 2005, 12:47:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_socket.cc
r5565 r5577 62 62 void NetworkSocket::connectToServer(IPaddress ip, unsigned int port) 63 63 { 64 65 /* Connect to the host and port contained in ip using a TCP connection. */ 66 tcpSocket = SDLNet_TCP_Open(&ip); 67 if(!tcpSocket) 68 { 69 PRINTF(1)("SDLNet_TCP_Open: %s\n", SDLNet_GetError()); 70 return; 71 } 72 64 73 } 65 74 … … 77 86 void NetworkSocket::disconnectServer( ) 78 87 { 88 89 /* Close the connection */ 90 SDLNet_TCP_Close(tcpSocket); 91 79 92 } 80 93
Note: See TracChangeset
for help on using the changeset viewer.