Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 26, 2015, 1:38:24 PM (10 years ago)
Author:
frovelli
Message:

Added serverlist ping display in LAN

Location:
code/branches/multiplayerFS15/src/libraries/network/packet
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/multiplayerFS15/src/libraries/network/packet/ServerInformation.cc

    r8351 r10334  
    3939  namespace packet
    4040  {
    41    
     41
    4242    ServerInformation::ServerInformation()
    4343    {
    44      
     44
    4545    }
    46    
     46
    4747    ServerInformation::ServerInformation(ENetEvent* event)
    4848    {
     
    6969    ServerInformation::~ServerInformation()
    7070    {
    71      
     71
    7272    }
    7373
     
    8181      ENetPacket* packet = enet_packet_create( temp, size, 0 );
    8282      enet_peer_send(peer, 0, packet);
    83      
     83
    8484      delete[] temp;
    8585    }
    86  
     86
    8787  } // namespace packet
    8888
     
    9595  }
    9696} // namespace orxonox
    97 
  • code/branches/multiplayerFS15/src/libraries/network/packet/ServerInformation.h

    r8351 r10334  
    4545        ServerInformation(ENetEvent* event);
    4646        ~ServerInformation();
    47        
     47
    4848        void          send( ENetPeer* peer );
    4949        std::string   getServerIP() { return this->serverIP_; }
     
    5252        void          setServerIP( std::string IP ) { this->serverIP_ = IP; }
    5353        uint32_t      getServerRTT() { return this->serverRTT_; }
    54        
     54
    5555      private:
    5656        std::string   serverName_;
Note: See TracChangeset for help on using the changeset viewer.