#include <conexus/ipv6_tcp.h>
Inheritance diagram for Conexus::IPv6::TCP:
Public Types | |
typedef boost::shared_ptr< TCP > | pointer |
Public Member Functions | |
TCP (uint16_t port=0) | |
int | pending_input_size () |
Returns the size in bytes of the next pending datagram, or 0 when no datagram is pending. | |
int | pending_output_size () |
Returns the size in bytes of the local send queue. | |
virtual ssize_t | write (const void *data, size_t size) throw (write_error) |
Overloads the Socket ancestor send method to ensure that the socket is connected before trying to send. | |
virtual Data | read (size_t s=-1) throw (read_error) |
Receives a single datagram from the TCP socket up to s bytes in size; allocates any memory necessary as a smart pointer contained in the returned Data object. | |
virtual void | connect () throw (connect_error) |
virtual void | connect (Address &a) throw (connect_error) |
virtual const std::string & | object_type () |
Static Public Member Functions | |
static TCP::pointer | create (uint16_t port=0) |
Protected Member Functions | |
TCP (int accepted_fd, bool) | |
Protected constructor to be used by TCPServer to create TCP connections. | |
virtual void | on_local_interface_changed (unsigned which) |
virtual void | on_remote_address_changed (unsigned which) |
Static Protected Member Functions | |
static TCP::pointer | create (int accepted_fd, bool) |
Friends | |
class | TCPServer |
|
Protected constructor to be used by TCPServer to create TCP connections. The second bool parameter is used to differentiate the public method from the private method. |
|
Receives a single datagram from the TCP socket up to s bytes in size; allocates any memory necessary as a smart pointer contained in the returned Data object. If s < 0 then receives the next pending datagram, however large it may be. Reimplemented from Conexus::Socket. |