#include <ipv6_tcp.h>
Public Types | |
typedef ConexusPointer< TCP > | pointer |
Public Member Functions | |
CONEXUS_ENDPOINT_GENERIC_CREATE () | |
virtual | ~TCP () throw () |
virtual bool | shutdown (ReadWrite read_write=READ_WRITE) |
Shut down the entirety or part of a TCP connection. | |
virtual size_t | input_available () throw () |
int | pending_output_size () |
Returns the size in bytes of the local send queue. | |
Static Public Member Functions | |
static pointer | create (uint16_t port=0) |
static pointer | create (uint32_t host, uint16_t port) |
static pointer | create (const struct in6_addr &host, uint16_t port=0) |
static pointer | create (const std::string &host, uint16_t port=0) |
Protected Member Functions | |
TCP (uint32_t host, uint16_t port) | |
TCP (const struct in6_addr &host=in6addr_any, uint16_t port=0) | |
TCP (const std::string &host, uint16_t port) | |
TCP (int accepted_fd, bool) | |
Protected constructor to be used by TCPServer to create TCP connections. | |
virtual void | on_local_address_changed () |
virtual void | on_remote_address_changed () |
virtual size_t | write_data (const Data data, Timeout timeout) throw ( write_exception ) |
Overloads the Socket ancestor send method to ensure that the socket is connected before trying to send. | |
Static Protected Member Functions | |
static TCP::pointer | create (int accepted_fd, bool) |
Friends | |
class | TCPServer |
typedef ConexusPointer<TCP> Conexus::IPv6::TCP::pointer |
Reimplemented from Conexus::IPv6::IP.
Reimplemented in Conexus::SSL::IPv6::TCP.
Conexus::IPv6::TCP::TCP | ( | uint32_t | host, | |
uint16_t | port | |||
) | [protected] |
References Conexus::IPv6::IP::m_remote_address.
Conexus::IPv6::TCP::TCP | ( | const struct in6_addr & | host = in6addr_any , |
|
uint16_t | port = 0 | |||
) | [protected] |
References Conexus::IPv6::IP::m_remote_address.
Conexus::IPv6::TCP::TCP | ( | const std::string & | host, | |
uint16_t | port | |||
) | [protected] |
References Conexus::IPv6::IP::m_remote_address.
Conexus::IPv6::TCP::~TCP | ( | ) | throw () [virtual] |
Reimplemented in Conexus::SSL::IPv6::TCP.
Conexus::IPv6::TCP::TCP | ( | int | accepted_fd, | |
bool | ||||
) | [protected] |
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.
References Conexus::FileDescriptor::m_fd, Conexus::Endpoint::m_state, Conexus::Endpoint::set_state_opened(), Conexus::SOCKET_ACCEPTED, Conexus::SOCKET_BOUND, and Conexus::SOCKET_CONNECTED.
Conexus::IPv6::TCP::CONEXUS_ENDPOINT_GENERIC_CREATE | ( | ) |
TCP::pointer Conexus::IPv6::TCP::create | ( | int | accepted_fd, | |
bool | b | |||
) | [static, protected] |
TCP::pointer Conexus::IPv6::TCP::create | ( | const std::string & | host, | |
uint16_t | port = 0 | |||
) | [static] |
TCP::pointer Conexus::IPv6::TCP::create | ( | const struct in6_addr & | host, | |
uint16_t | port = 0 | |||
) | [static] |
TCP::pointer Conexus::IPv6::TCP::create | ( | uint32_t | host, | |
uint16_t | port | |||
) | [static] |
TCP::pointer Conexus::IPv6::TCP::create | ( | uint16_t | port = 0 |
) | [static] |
size_t Conexus::IPv6::TCP::input_available | ( | ) | throw () [virtual] |
void Conexus::IPv6::TCP::on_local_address_changed | ( | ) | [protected, virtual] |
Reimplemented from Conexus::IPv6::IP.
References Conexus::Endpoint::close_and_reopen(), Conexus::Socket::is_accepted(), and Conexus::Socket::is_bound().
void Conexus::IPv6::TCP::on_remote_address_changed | ( | ) | [protected, virtual] |
Reimplemented from Conexus::IPv6::IP.
References Conexus::Endpoint::close_and_reopen(), Conexus::Socket::is_accepted(), and Conexus::Socket::is_connected().
int Conexus::IPv6::TCP::pending_output_size | ( | ) |
bool Conexus::IPv6::TCP::shutdown | ( | ReadWrite | read_write = READ_WRITE |
) | [virtual] |
Shut down the entirety or part of a TCP connection.
read_write | use enum ReadWrite values to indicate which portion of the TCP connection (READ, WRITE or READWRITE) should be shut down |
References Conexus::Socket::is_connected(), Conexus::FileDescriptor::m_fd, Conexus::READ, Conexus::READ_WRITE, and Conexus::WRITE.
size_t Conexus::IPv6::TCP::write_data | ( | const Data | data, | |
Timeout | timeout | |||
) | throw ( write_exception ) [protected, virtual] |
Overloads the Socket ancestor send method to ensure that the socket is connected before trying to send.
Reimplemented from Conexus::Socket.
Reimplemented in Conexus::SSL::IPv6::TCP.
References Conexus::SOCKET_CONNECTED, and Conexus::Socket::write_data().
friend class TCPServer [friend] |
Reimplemented in Conexus::SSL::IPv6::TCP.