- Timestamp:
- Dec 28, 2010, 4:46:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network6/src/libraries/network/ClientConnection.cc
r7801 r7823 103 103 if( enet_host_service(this->host_, &event, NETWORK_CLIENT_WAIT_TIME)>=0 && event.type == ENET_EVENT_TYPE_CONNECT ) 104 104 { 105 // manually add server to list of peers 106 /*incomingEvent inEvent = */Connection::preprocessConnectEvent(event); 107 // addPeer(inEvent.peerID); 108 // start communication thread 105 109 this->established_=true; 106 110 Connection::startCommunicationThread(); … … 148 152 assert( this->server_ ); 149 153 assert( packet ); 150 return Connection::addPacket( packet, this->server_, channelID ); 154 // return Connection::addPacket( packet, NETWORK_PEER_ID_SERVER, channelID ); 155 // HACK: actually there should be a way to do this using addPacket and the correct peerID 156 return Connection::broadcastPacket(packet, channelID); 151 157 } 152 158 153 void ClientConnection::addPeer( ENetEvent* event)159 void ClientConnection::addPeer(uint32_t peerID) 154 160 { 155 161 assert(0); 156 162 } 157 void ClientConnection::removePeer( ENetEvent* event)163 void ClientConnection::removePeer(uint32_t peerID) 158 164 { 159 165 this->established_=false;
Note: See TracChangeset
for help on using the changeset viewer.