#include <conexus/ipv4_tcp.h>
Inheritance diagram for Conexus::IPv4::TCP:

Public Types | |
| typedef ConexusPointer< TCP > | pointer |
| typedef ConexusPointer< TCP > | pointer |
| typedef ConexusPointer< TCP > | pointer |
Public Member Functions | |
| virtual ssize_t | input_available () |
| int | pending_output_size () |
| Returns the size in bytes of the local send queue. | |
| TCP (uint16_t port=0) | |
| virtual ssize_t | input_available () |
| int | pending_output_size () |
| Returns the size in bytes of the local send queue. | |
| virtual void | connect () throw (connect_exception) |
| virtual void | connect (Address &a) throw (connect_exception) |
| virtual const std::string & | object_type () |
| TCP (uint16_t port=0) | |
| virtual ssize_t | input_available () |
| int | pending_output_size () |
| Returns the size in bytes of the local send queue. | |
| virtual void | connect () throw (connect_exception) |
| virtual void | connect (Address &a) throw (connect_exception) |
| virtual const std::string & | object_type () |
Static Public Member Functions | |
| static pointer | create (uint16_t port=0) |
| static pointer | create (uint32_t address, uint16_t port) |
| static pointer | create (const std::string &address, uint16_t port=0) |
| static TCP::pointer | create (uint16_t port=0) |
| static TCP::pointer | create (uint16_t port=0) |
Protected Member Functions | |
| TCP (uint32_t address, uint16_t port) | |
| TCP (const std::string &address, 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 ssize_t | write_data (long int timeout, const Data data) throw ( write_exception ) |
| Overloads the Socket ancestor send method to ensure that the socket is connected before trying to send. | |
| virtual Data | read_data (long int timeout, size_t s=0) throw ( read_exception ) |
| 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. | |
| 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) |
| virtual ssize_t | write_data (long int timeout, Data::const_pointer data) throw (write_exception) |
| Overloads the Socket ancestor send method to ensure that the socket is connected before trying to send. | |
| virtual Data::pointer | read_data (long int timeout, size_t s=0) throw (read_exception) |
| 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. | |
| 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) |
| virtual ssize_t | write_data (long int timeout, Data::const_pointer data) throw (write_exception) |
| Overloads the Socket ancestor send method to ensure that the socket is connected before trying to send. | |
| virtual Data::pointer | read_data (long int timeout, size_t s=0) throw (read_exception) |
| 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. | |
Static Protected Member Functions | |
| static TCP::pointer | create (int accepted_fd, bool) |
| static TCP::pointer | create (int accepted_fd, bool) |
| static TCP::pointer | create (int accepted_fd, bool) |
Friends | |
| class | TCPServer |
| Conexus::IPv4::TCP::TCP | ( | int | accepted_fd, | |
| bool | ||||
| ) | [protected] |
| Conexus::IPv4::TCP::TCP | ( | int | accepted_fd, | |
| bool | ||||
| ) | [protected] |
| Conexus::IPv4::TCP::TCP | ( | int | accepted_fd, | |
| bool | ||||
| ) | [protected] |
| Data Conexus::IPv4::TCP::read_data | ( | long int | timeout, | |
| size_t | s = 0 | |||
| ) | throw ( read_exception ) [protected, virtual] |
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.
| virtual Data::pointer Conexus::IPv4::TCP::read_data | ( | long int | timeout, | |
| size_t | s = 0 | |||
| ) | throw (read_exception) [protected, virtual] |
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.
| virtual Data::pointer Conexus::IPv4::TCP::read_data | ( | long int | timeout, | |
| size_t | s = 0 | |||
| ) | throw (read_exception) [protected, virtual] |
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.
1.5.1