Changeset 7666 for code/branches/masterserver/src/modules
- Timestamp:
- Nov 24, 2010, 4:13:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/masterserver/src/modules/masterserver/MasterServer.cc
r7662 r7666 159 159 std::list<packet::ServerInformation>::iterator i; 160 160 161 /* packet holder */ 162 ENetPacket *reply; 163 161 164 /* loop through list elements */ 162 165 for( i = mainlist.serverlist.begin(); i != mainlist.serverlist.end(); ++i ) … … 169 172 170 173 /* create packet from it */ 171 ENetPacket *reply = enet_packet_create( tosend,174 reply = enet_packet_create( tosend, 172 175 strlen( tosend ) + 1, 173 176 ENET_PACKET_FLAG_RELIABLE); … … 179 182 enet_host_flush( this->server ); 180 183 } 184 185 /* send end-of-list packet */ 186 reply = enet_packet_create( MSPROTO_SERVERLIST_END, 187 MSPROTO_SERVERLIST_END_LEN + 1, 188 ENET_PACKET_FLAG_RELIABLE ); 189 190 enet_peer_send( event->peer, 0, reply ); 191 192 /* One could just use enet_host_service() instead. */ 193 enet_host_flush( this->server ); 194 181 195 } 182 196 }
Note: See TracChangeset
for help on using the changeset viewer.