Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 17, 2010, 4:05:13 PM (14 years ago)
Author:
smerkli
Message:

Minimum target achieved for today, servers can log on to master server, clients can get server list. To be debugged.

File:
1 edited

Legend:

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

    r7634 r7650  
    105105    /* initialize it and see if it worked */
    106106    if( msc.initialize() )
    107       COUT(1) << "Error: could not initialize master server communications!\n";
     107    { COUT(1) << "Error: could not initialize master server communications!\n";
     108      return;
     109    }
    108110
    109111    /* connect and see if it worked */
    110112    if( msc.connect( MS_ADDRESS, 1234 ) )
    111       COUT(1) << "Error: could not connect to master server!\n";
    112 
    113     /* TODO */
     113    { COUT(1) << "Error: could not connect to master server!\n";
     114      return;
     115    }
     116
    114117    /* now send the master server some note we're here */
     118    msc.sendRequest( MSPROTO_GAME_SERVER " " MSPROTO_REGISTER_SERVER );
    115119  }
    116120
     
    164168
    165169  /* TODO */
    166   int replyhandler( char *addr, ENetEvent *ev )
     170  int rephandler( char *addr, ENetEvent *ev )
    167171  {
    168172    /* handle incoming data */
     
    174178  void Server::helper_HandleMasterServerRequests()
    175179  {
    176     this->msc.pollForReply( replyhandler );
     180    this->msc.pollForReply( rephandler );
    177181  }
    178182
Note: See TracChangeset for help on using the changeset viewer.