Changeset 9625 in orxonox.OLD for branches/proxy/src/lib/network/network_stream.cc
- Timestamp:
- Jul 30, 2006, 11:19:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9605 r9625 81 81 // init the shared network data 82 82 SharedNetworkData::getInstance()->setHostID(NET_ID_MASTER_SERVER); 83 this->pInfo->userId = NET_ID_MASTER_SERVER; 84 this->pInfo->nodeType = NET_MASTER_SERVER; 85 83 86 break; 84 87 case NET_PROXY_SERVER_ACTIVE: 85 88 // init the shared network data 86 89 SharedNetworkData::getInstance()->setHostID(NET_ID_PROXY_SERVER_01); 90 this->pInfo->nodeType = NET_PROXY_SERVER_ACTIVE; 91 87 92 break; 88 93 case NET_PROXY_SERVER_PASSIVE: 89 94 // init the shared network data 90 95 SharedNetworkData::getInstance()->setHostID(NET_ID_PROXY_SERVER_01); 96 this->pInfo->nodeType = NET_PROXY_SERVER_PASSIVE; 97 91 98 break; 92 99 case NET_CLIENT: 93 100 SharedNetworkData::getInstance()->setHostID(NET_ID_UNASSIGNED); 101 this->pInfo->nodeType = NET_CLIENT; 94 102 break; 95 103 } … … 526 534 it++; 527 535 } 528 529 530 536 } 531 537 … … 685 691 // it->second.ip = it->second.socket->getRemoteAddress(); 686 692 687 //it->second.nodeType = it->second.handshake->getRemoteNodeType();693 it->second.nodeType = it->second.handshake->getRemoteNodeType(); 688 694 // it->second.ip = it->second.socket->getRemoteAddress(); 689 695 // add the new server to the nodes list (it can be a NET_MASTER_SERVER or NET_PROXY_SERVER)
Note: See TracChangeset
for help on using the changeset viewer.