src/Network/Session.hh
changeset 381 9b35bc329d23
parent 286 2a8f20a53ff2
child 400 d64bf28c4340
equal deleted inserted replaced
380:d193dd1d8a7e 381:9b35bc329d23
    78         /**
    78         /**
    79          * Have the NetworkSession enter server mode, listening on the given address using both TCP and UDP
    79          * Have the NetworkSession enter server mode, listening on the given address using both TCP and UDP
    80          *
    80          *
    81          * @param addr local address to listen on
    81          * @param addr local address to listen on
    82          */
    82          */
    83         void listen (const NetworkAddress &addr);
    83         void listen (const NetworkEndpoint &addr);
    84 
    84 
    85         /**
    85         /**
    86          * Have the NetworkSession enter client mode, establishing a TCP connection to the server, and then allocating
    86          * Have the NetworkSession enter client mode, establishing a TCP connection to the server, and then allocating
    87          * an UDP socket on the same local address as the TCP connection.
    87          * an UDP socket on the same local address as the TCP connection.
    88          *
    88          *
    89          * @param addr remote address to connect to
    89          * @param addr remote address to connect to
    90          */
    90          */
    91         NetworkNode* connect (const NetworkAddress &addr);
    91         NetworkNode* connect (const NetworkEndpoint &addr);
    92     
    92     
    93     protected:
    93     protected:
    94         /**
    94         /**
    95          * Used to build a new NetworkNode by connect/on_tcp_client. Can be used to override what kind of NetworkNodes
    95          * Used to build a new NetworkNode by connect/on_tcp_client. Can be used to override what kind of NetworkNodes
    96          * get created. Type tells what kind of node this is.
    96          * get created. Type tells what kind of node this is.