Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 14, 2006, 12:19:31 PM (18 years ago)
Author:
patrick
Message:

working with max connections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/network_stream.cc

    r9287 r9290  
    337337
    338338    // check if there are too many clients connected
    339     if ( clientId > MAX_CONNECTIONS )
     339    if ( clientId > NET_MAX_CONNECTIONS )
    340340    {
    341341      peers[clientId].handshake->doReject( "too many connections" );
     
    420420               (*it)->getUniqueID(), (*it)->beSynchronized());
    421421  }
    422   PRINT(0)(" Maximal Connections: %i\n", MAX_CONNECTIONS );
     422  PRINT(0)(" Maximal Connections: %i\n", NET_MAX_CONNECTIONS );
    423423
    424424}
     
    568568
    569569      // server fakes uniqueid == 0 for handshake
    570       if ( this->isMasterServer() && sync.getUniqueID() < MAX_CONNECTIONS - 1 )
     570      if ( this->isMasterServer() && sync.getUniqueID() < NET_MAX_CONNECTIONS - 1 )
    571571        n = Converter::intToByteArray( 0, buf + offset, UDP_PACKET_SIZE - offset );
    572572      else
Note: See TracChangeset for help on using the changeset viewer.