- Timestamp:
- Nov 23, 2005, 3:08:07 PM (19 years ago)
- Location:
- branches/network/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_socket.cc
r5732 r5733 63 63 * Constructor to connect directly 64 64 */ 65 NetworkSocket::NetworkSocket( char * ipAddress, unsigned int port)65 NetworkSocket::NetworkSocket(IPaddress ip, unsigned int port) 66 66 { 67 67 NetworkSocket(); 68 IPaddress ip;69 SDLNet_ResolveHost(&ip, ipAddress, port);70 68 connectToServer(ip, port); 71 69 } -
branches/network/src/lib/network/network_socket.h
r5732 r5733 73 73 74 74 NetworkSocket(); 75 NetworkSocket( char * ipAddress, unsigned int port);75 NetworkSocket(IPaddress ip, unsigned int port); 76 76 ~NetworkSocket(); 77 77 -
branches/network/src/subprojects/network/network_unit_test.cc
r5732 r5733 30 30 int testSocket(int argc, char** argv) 31 31 { 32 IPaddress ip; 33 SDLNet_ResolveHost(&ip, "127.0.0.1", 9999); 32 34 NetworkSocket server; 33 35 server.listen(9999); 34 36 SDL_Delay(20); 35 37 36 NetworkSocket client( "127.0.0.1", 9999);38 NetworkSocket client(ip, 9999); 37 39 38 40 char buf[1024];
Note: See TracChangeset
for help on using the changeset viewer.