Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2010, 2:51:39 PM (13 years ago)
Author:
smerkli
Message:

disconnect implemented, switching to only use the MSC object of wandiscovery.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/libraries/network/MasterServer.cc

    r7756 r7763  
    186186      }
    187187
     188      else if( !strncmp( (char *)event->packet->data
     189        + MSPROTO_GAME_SERVER_LEN+1,
     190        MSPROTO_SERVERDC, MSPROTO_SERVERDC_LEN ) )
     191      {
     192        /* create string from peer data */
     193        std::string name = std::string( addrconv );
     194
     195        /* remove the server from the list it belongs to */
     196        this->mainlist.delServerByName( name );
     197
     198        /* tell the user */
     199        COUT(2) << "Removed server " << name << " from list.\n";
     200      }
     201
    188202      /* TODO add hook for disconnect here */
    189203    }
Note: See TracChangeset for help on using the changeset viewer.