src/proto2/NetworkNode.hh
author terom
Mon, 10 Nov 2008 19:57:57 +0000
branchno-netsession
changeset 33 e53f09b378f4
child 36 785d220fc6b7
permissions -rw-r--r--
more untested, uncompiled code
#ifndef NETWORK_NODE_HH
#define NETWORK_NODE_HH

#include "NetworkTCP.hh"

class NetworkNode {
    private:
        NetworkSession &session;
        NetworkTCPTransport *tcp;
        NetworkUDP &udp;
        const NetworkAddress address;

        CL_SlotContainer slots;
    
    private:
        NetworkNode (NetworkSession &session, NetworkTCPTransport *tcp, NetworkUDP &udp, const NetworkAddress &address);
        
        NetworkNode (const NetworkNode &copy) { }
        ~NetworkNode (void);
        NetworkNode& operator= (const NetworkNode &copy) { }

    public:
        void send (NetworkChannelID channel_id, const NetworkPacket &pkt, bool reliable = true);

        const NetworkAddress& getRemoteAddress (void);
};

#endif /* NETWORK_NODE_HH */