Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 6, 2010, 9:14:27 PM (14 years ago)
Author:
smerkli
Message:

fixed some warnings

Location:
code/branches/masterserver/src/libraries/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/masterserver/src/libraries/network/MasterServerComm.cc

    r7692 r7725  
    7676  }
    7777
    78   int MasterServerComm::connect( char *address, unsigned int port )
     78  int MasterServerComm::connect( const char *address, unsigned int port )
    7979  {
    8080    /* Connect to address:port. */
     
    141141
    142142          /* 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 );
    149153          /* END DEBUG */
    150154
     
    167171  }
    168172
    169   int MasterServerComm::sendRequest( char *data )
     173  int MasterServerComm::sendRequest( const char *data )
    170174  {
    171175    /* send the data to the friend */
  • code/branches/masterserver/src/libraries/network/MasterServerComm.h

    r7684 r7725  
    5757       * Connect to the master server with the given address on the given port.
    5858       */
    59       int connect( char *address, unsigned int port );
     59      int connect( const char *address, unsigned int port );
    6060
    6161      /** \param data The data to be sent.
     
    6464       * Send a request to the master server containing data specified in data
    6565       */
    66       int sendRequest( char *data );
     66      int sendRequest( const char *data );
    6767
    6868      /** \param data The data to be sent.
Note: See TracChangeset for help on using the changeset viewer.