Changeset 9462 in orxonox.OLD for branches/proxy/src
- Timestamp:
- Jul 25, 2006, 6:01:47 PM (18 years ago)
- Location:
- branches/proxy/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9459 r9462 360 360 //check for new connections 361 361 362 NetworkSocket* tempNetworkSocket = serverSocket->getNew ClientSocket();362 NetworkSocket* tempNetworkSocket = serverSocket->getNewSocket(); 363 363 364 364 // we got new network node -
branches/proxy/src/lib/network/server_socket.h
r9459 r9462 25 25 26 26 virtual bool listen( unsigned int port ) = 0; 27 virtual NetworkSocket* getNewClientSocket( void ) = 0; 28 // virtual NetworkSocket* getNewClientSocket( void ) = 0; 27 virtual NetworkSocket* getNewSocket( void ) = 0; 29 28 virtual void close() = 0; 30 29 virtual void update() = 0; -
branches/proxy/src/lib/network/tcp_server_socket.cc
r9460 r9462 105 105 106 106 107 NetworkSocket* TcpServerSocket::getNew ClientSocket( )107 NetworkSocket* TcpServerSocket::getNewSocket( ) 108 108 { 109 109 if ( !listenSocket ) … … 127 127 128 128 129 NetworkSocket* TcpServerSocket::getNewProxySocket( )130 {131 return NULL;132 }133 134 129 135 130 void TcpServerSocket::close( ) -
branches/proxy/src/lib/network/tcp_server_socket.h
r9460 r9462 25 25 26 26 virtual bool listen( unsigned int port ); 27 virtual NetworkSocket* getNewClientSocket( void ); 28 virtual NetworkSocket* getNewProxySocket( void ); 27 virtual NetworkSocket* getNewSocket( void ); 29 28 virtual void close(); 30 29 virtual void update() {}; -
branches/proxy/src/lib/network/udp_server_socket.cc
r9461 r9462 82 82 * only clients connect to this socket 83 83 */ 84 NetworkSocket * UdpServerSocket::getNew ClientSocket( void )84 NetworkSocket * UdpServerSocket::getNewSocket( void ) 85 85 { 86 86 NetworkSocket * result = NULL; … … 303 303 break; 304 304 305 initUser( userId, packet->address, packet->data[0] & 0xFC );305 this->initUser( userId, packet->address, packet->data[0] & 0xFC ); 306 306 UdpSocket * sock = new UdpSocket( this, packet->address, userId, packet->data[0] & 0xFC ); 307 307 newSocketList.push_back( sock ); -
branches/proxy/src/lib/network/udp_server_socket.h
r9461 r9462 56 56 /* server socket manipulations */ 57 57 virtual bool listen( unsigned int port ); 58 virtual NetworkSocket* getNewClientSocket( void ); 59 virtual NetworkSocket* getNewProxySocket( void ); 58 virtual NetworkSocket* getNewSocket( void ); 60 59 virtual void close(); 61 62 60 63 61 virtual void update(); … … 76 74 77 75 private: 78 UDPsocket socket; //!< will be use s to send/recieve data76 UDPsocket socket; //!< will be used to send/recieve data to/from clients 79 77 UDPpacket * packet; //!< packet structure to recieve packet 80 78 PacketBuffer packetBuffer; //!< will store recieved packets for UdpSockets -
branches/proxy/src/subprojects/network/network_unit_test.cc
r9459 r9462 50 50 { 51 51 server.update(); 52 server1 = server.getNew ClientSocket();52 server1 = server.getNewSocket(); 53 53 } 54 54 … … 61 61 { 62 62 server.update(); 63 server2 = server.getNew ClientSocket();63 server2 = server.getNewSocket(); 64 64 } 65 65
Note: See TracChangeset
for help on using the changeset viewer.