equal
deleted
inserted
replaced
74 |
74 |
75 public: |
75 public: |
76 /** |
76 /** |
77 * Get this TCP socket's local address |
77 * Get this TCP socket's local address |
78 */ |
78 */ |
79 NetworkAddress getLocalAddress (void) { return socket->get_local_address(); } |
79 NetworkAddress get_local_address (void) { return socket->get_local_address(); } |
80 |
80 |
81 /** |
81 /** |
82 * Get this TCP socket's remote address |
82 * Get this TCP socket's remote address |
83 */ |
83 */ |
84 NetworkAddress getRemoteAddress (void) { return socket->get_remote_address(); } |
84 NetworkAddress get_remote_address (void) { return socket->get_remote_address(); } |
85 |
85 |
86 /** |
86 /** |
87 * Write the given packet to this socket output, buffering the data if need be |
87 * Write the given packet to this socket output, buffering the data if need be |
88 * |
88 * |
89 * @param packet the packet to send |
89 * @param packet the packet to send |
90 */ |
90 */ |
91 void write_packet (const NetworkPacketBuffer &packet); |
91 void write_packet (const NetworkPacketBuffer &packet); |
|
92 |
|
93 /** |
|
94 * Handle disconnect, disable socket |
|
95 */ |
|
96 void handle_disconnect (void); |
92 |
97 |
93 /** |
98 /** |
94 * A full packet has been received from the remote end |
99 * A full packet has been received from the remote end |
95 */ |
100 */ |
96 CL_Signal_v1<NetworkPacketInput&>& sig_packet (void) { return _sig_packet; } |
101 CL_Signal_v1<NetworkPacketInput&>& sig_packet (void) { return _sig_packet; } |