Changeset 230 for code/branches
- Timestamp:
- Nov 20, 2007, 10:18:11 PM (17 years ago)
- Location:
- code/branches/network/src/network
- Files:
-
- 4 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/Client.cc
r229 r230 5 5 // 6 6 // 7 // Author: <>, (C) 20077 // Author: Oliver Scheuss, (C) 2007 8 8 // 9 9 // Copyright: See COPYING file that comes with this distribution -
code/branches/network/src/network/Client.h
r229 r230 5 5 // 6 6 // 7 // Author: <>, (C) 20077 // Author: Oliver Scheuss, (C) 2007 8 8 // 9 9 // Copyright: See COPYING file that comes with this distribution -
code/branches/network/src/network/ConnectionManager.cc
r229 r230 27 27 } 28 28 29 ConnectionManager::ConnectionManager(int port, intaddress){29 ConnectionManager::ConnectionManager(int port, std::string address){ 30 30 quit=false; 31 31 client=NULL; 32 bindAddress.host = address;32 enet_address_set_host (& bindAddress, address.c_str()); 33 33 bindAddress.port = NETWORK_PORT; 34 34 } 35 35 36 ConnectionManager::ConnectionManager(int port, const char *address){ 37 quit=false; 38 client=NULL; 39 enet_address_set_host (& bindAddress, address); 40 bindAddress.port = NETWORK_PORT; 41 } 36 42 37 43 ENetPacket *ConnectionManager::getPacket(ENetAddress &address){ -
code/branches/network/src/network/ConnectionManager.h
r211 r230 14 14 15 15 #include <iostream> 16 #include <string> 16 17 // enet library for networking support 17 18 #include <enet/enet.h> … … 44 45 public: 45 46 ConnectionManager(); 46 ConnectionManager(int port, int address); 47 ConnectionManager(int port, const char *address); 48 ConnectionManager(int port, std::string address); 47 49 ENetPacket *getPacket(ENetAddress &address); // thread1 48 50 // check wheter the packet queue is empty -
code/branches/network/src/network/Makefile
r229 r230 25 25 Client.o: Client.cc 26 26 ${CC} -c Client.cc -g ${INC} 27 Server.o: Server.cc 28 ${CC} -c Server.cc -g ${INC} 27 29 28 30 clean:
Note: See TracChangeset
for help on using the changeset viewer.