Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9656 in orxonox.OLD for trunk/src/lib/network/network_stream.h


Ignore:
Timestamp:
Aug 4, 2006, 11:01:28 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the proxy bache back with no conflicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/network/network_stream.h

    r9494 r9656  
    4141    void init();
    4242
     43    /* network interface controls */
    4344    void connectToMasterServer(std::string host, int port);
    4445    void connectToProxyServer(int proxyId, std::string host, int port);
    45     void createServer(int clientPort, int proxyPort);
     46    void createServer(int clientPort, int proxyPort, int clientSoftPort);
    4647
    4748    void createNetworkGameManager();
    4849    void startHandshake(int userId = NET_ID_MASTER_SERVER);
     50
     51    void reconnectToServer(IP address);
     52    void softReconnectToServer(int serverUserId, IP address);
     53    void prepareSoftConnection(int userId);
     54
    4955
    5056    /* synchronizeable interface */
     
    7076    inline PeerInfo* getPeerInfo() { return this->pInfo; }
    7177    inline PeerList getPeerInfoList() { return this->peers; }
     78
     79    inline void setRedirectionTest() { this->bSoftRedirect = true; }
    7280
    7381    /* data processing*/
     
    96104
    97105    void handleConnect( int userId);
     106    void handleSoftConnect( int userId);
    98107    void handleReconnect( int userId );
    99108    void handleDisconnect( int userId );
     109    void handleSoftDisconnect( int userId);
    100110
    101111    void writeToNewDict( byte * data, int length, bool upstream );
     
    112122    NetworkMonitor*            networkMonitor;              //!< the network monitor
    113123    NetworkGameManager*        networkGameManager;          //!< reference to the network game manager
    114     ServerSocket*              clientSocket;                //!< the listening socket of the server
     124    ServerSocket*              clientSocket;                //!< the listening socket for clients of the server
     125    ServerSocket*              clientSoftSocket;            //!< the listening socket for soft connections to the server
    115126    ServerSocket*              proxySocket;                 //!< socket for proxy connections
    116127
     
    126137
    127138    bool                       bRedirect;                   //!< true if the master server sent a redirect command
     139    int                        redirectionUID;              //!< uid of the redir host
     140    bool                       bSoftRedirect;               //!< tsting
    128141};
    129142#endif /* _NETWORK_STREAM */
Note: See TracChangeset for help on using the changeset viewer.