Changeset 3203 for code/branches/netp5/src/network
- Timestamp:
- Jun 21, 2009, 12:34:33 AM (15 years ago)
- Location:
- code/branches/netp5/src/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp5/src/network/ClientConnection.cc
r3202 r3203 86 86 } 87 87 COUT(1) << "Could not connect to server" << endl; 88 return false; 88 89 } 89 90 -
code/branches/netp5/src/network/Connection.h
r3202 r3203 51 51 namespace orxonox 52 52 { 53 const int NETWORK_PORT = 55556;54 const int NETWORK_MAX_CONNECTIONS = 50;55 const int NETWORK_WAIT_TIMEOUT = 0;56 const int NETWORK_DEFAULT_CHANNEL = 0;57 const int NETWORK_MAX_QUEUE_PROCESS_TIME = 5;53 const unsigned int NETWORK_PORT = 55556; 54 const unsigned int NETWORK_MAX_CONNECTIONS = 50; 55 const unsigned int NETWORK_WAIT_TIMEOUT = 0; 56 const unsigned int NETWORK_DEFAULT_CHANNEL = 0; 57 const unsigned int NETWORK_MAX_QUEUE_PROCESS_TIME = 5; 58 58 59 59 class _NetworkExport Connection{ -
code/branches/netp5/src/network/ServerConnection.cc
r3202 r3203 56 56 if ( this->host_ == NULL ) 57 57 return false; 58 else 59 return true; 58 60 } 59 61 … … 62 64 disconnectClients(); 63 65 enet_host_destroy(this->host_); 66 return true; 64 67 } 65 68
Note: See TracChangeset
for help on using the changeset viewer.