- Timestamp:
- Dec 8, 2010, 5:35:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/libraries/network/MasterServerComm.cc
r7739 r7745 87 87 if (this->peer == NULL ) 88 88 { COUT(2) << "ERROR: No available peers for initiating an ENet connection.\n"; 89 //exit (EXIT_FAILURE);90 89 return -1; 91 90 } … … 94 93 if (enet_host_service (this->client, this->event, 2000) > 0 && 95 94 this->event->type == ENET_EVENT_TYPE_CONNECT ) 96 fprintf( stdout, "Connection to server succeeded." );95 COUT(3) << "Connection to master server succeeded.\n"; 97 96 else 98 97 { 99 98 enet_peer_reset (this->peer); 100 99 fprintf( stdout, "Connection to %s failed.", address ); 101 //exit(EXIT_FAILURE);100 COUT(2) << "ERROR: connection to " << address << " failed.\n"; 102 101 return -1; 103 102 }
Note: See TracChangeset
for help on using the changeset viewer.