equal
deleted
inserted
replaced
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. |