- Timestamp:
- Mar 26, 2015, 1:38:24 PM (10 years ago)
- 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 39 39 namespace packet 40 40 { 41 41 42 42 ServerInformation::ServerInformation() 43 43 { 44 44 45 45 } 46 46 47 47 ServerInformation::ServerInformation(ENetEvent* event) 48 48 { … … 69 69 ServerInformation::~ServerInformation() 70 70 { 71 71 72 72 } 73 73 … … 81 81 ENetPacket* packet = enet_packet_create( temp, size, 0 ); 82 82 enet_peer_send(peer, 0, packet); 83 83 84 84 delete[] temp; 85 85 } 86 86 87 87 } // namespace packet 88 88 … … 95 95 } 96 96 } // namespace orxonox 97 -
code/branches/multiplayerFS15/src/libraries/network/packet/ServerInformation.h
r8351 r10334 45 45 ServerInformation(ENetEvent* event); 46 46 ~ServerInformation(); 47 47 48 48 void send( ENetPeer* peer ); 49 49 std::string getServerIP() { return this->serverIP_; } … … 52 52 void setServerIP( std::string IP ) { this->serverIP_ = IP; } 53 53 uint32_t getServerRTT() { return this->serverRTT_; } 54 54 55 55 private: 56 56 std::string serverName_;
Note: See TracChangeset
for help on using the changeset viewer.