Changeset 5732 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- Nov 23, 2005, 2:59:11 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_socket.cc
r5729 r5732 58 58 PRINTF(0)("NetworkSocket created\n"); 59 59 60 } 61 62 /** 63 * Constructor to connect directly 64 */ 65 NetworkSocket::NetworkSocket(char * ipAddress, unsigned int port) 66 { 67 NetworkSocket(); 68 IPaddress ip; 69 SDLNet_ResolveHost(&ip, ipAddress, port); 70 connectToServer(ip, port); 60 71 } 61 72 -
branches/network/src/lib/network/network_socket.h
r5729 r5732 24 24 #ifdef HAVE_SDL_H 25 25 #include <SDL_Thread.h> 26 #else 26 #else 27 27 #include <SDL/SDL_thread.h> 28 28 #endif … … 73 73 74 74 NetworkSocket(); 75 NetworkSocket(char * ipAddress, unsigned int port); 75 76 ~NetworkSocket(); 76 77
Note: See TracChangeset
for help on using the changeset viewer.