Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 14, 2006, 10:46:13 AM (19 years ago)
Author:
patrick
Message:

another standardisation: less different types with the same content

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/network_stream.h

    r9284 r9285  
    4848
    4949    /* functions for the localhost settings */
    50     inline bool isMasterServer() const { return (this->nodeType == NET_MASTER_SERVER)? true:false; }
    51     inline bool isProxyServer() const { return (this->nodeType == NET_PROXY_SERVER)? true:false; }
    52     inline bool isClient() const { return (this->nodeType == NET_CLIENT)? true:false; }
     50    inline bool isMasterServer() const { return (this->pInfo->nodeType == NET_MASTER_SERVER)? true:false; }
     51    inline bool isProxyServer() const { return (this->pInfo->nodeType == NET_PROXY_SERVER)? true:false; }
     52    inline bool isClient() const { return (this->pInfo->nodeType == NET_CLIENT)? true:false; }
    5353//     inline bool isActive() const { return this->bActive; }
    5454    inline int getMaxConnections(){ return MAX_CONNECTIONS; }
     
    9494
    9595    PeerInfo*                  pInfo;                       //!< the info about the local peer node (not in the PeerList)
    96     int                        nodeType;                    //!< the type of this host (NET_CLIENT, NET_MASTER_SERVER,...)
    97     int                        myHostId;                    //!< the host id of the localhost
    9896
    9997    std::list<int>             freeSocketSlots;             //!< list of free sockets (to ensure not to resycle sockets)
Note: See TracChangeset for help on using the changeset viewer.