Changeset 7725 for code/branches/masterserver/src/libraries/network
- Timestamp:
- Dec 6, 2010, 9:14:27 PM (14 years ago)
- Location:
- code/branches/masterserver/src/libraries/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/masterserver/src/libraries/network/MasterServerComm.cc
r7692 r7725 76 76 } 77 77 78 int MasterServerComm::connect( c har *address, unsigned int port )78 int MasterServerComm::connect( const char *address, unsigned int port ) 79 79 { 80 80 /* Connect to address:port. */ … … 141 141 142 142 /* DEBUG */ 143 printf( "A packet of length %u containing %s was " 144 "received from %s on channel %u.\n", 145 this->event->packet->dataLength, 146 this->event->packet->data, 147 addrconv, 148 this->event->channelID ); 143 COUT(3) << "A packet of length " << this->event->packet->dataLength 144 << " containing " << this->event->packet->data 145 << " was received from " << addrconv 146 << " on channel " << this->event->channelID; 147 //printf( "A packet of length %u containing %s was " 148 //"received from %s on channel %u.\n", 149 //this->event->packet->dataLength, 150 //this->event->packet->data, 151 //addrconv, 152 //this->event->channelID ); 149 153 /* END DEBUG */ 150 154 … … 167 171 } 168 172 169 int MasterServerComm::sendRequest( c har *data )173 int MasterServerComm::sendRequest( const char *data ) 170 174 { 171 175 /* send the data to the friend */ -
code/branches/masterserver/src/libraries/network/MasterServerComm.h
r7684 r7725 57 57 * Connect to the master server with the given address on the given port. 58 58 */ 59 int connect( c har *address, unsigned int port );59 int connect( const char *address, unsigned int port ); 60 60 61 61 /** \param data The data to be sent. … … 64 64 * Send a request to the master server containing data specified in data 65 65 */ 66 int sendRequest( c har *data );66 int sendRequest( const char *data ); 67 67 68 68 /** \param data The data to be sent.
Note: See TracChangeset
for help on using the changeset viewer.