Conexus::IPv6::TCP Class Reference
[Classes for communicating via IP version 6 socketsClasses for communicating via IP version 6 socketsClasses for communicating via IP version 6 sockets]

#include <conexus/ipv6_tcp.h>

Inheritance diagram for Conexus::IPv6::TCP:

Inheritance graph
[legend]
List of all members.

Detailed Description

This class encapsulates a socket used for TCP/IP communications.

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>


Public Types

typedef ConexusPointer< TCPpointer
typedef ConexusPointer< TCPpointer
typedef ConexusPointer< TCPpointer

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 struct in6_addr &address, uint16_t port=0)
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 struct in6_addr &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


Constructor & Destructor Documentation

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.

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.

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.


Member Function Documentation

Data Conexus::IPv6::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::IPv6::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::IPv6::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.


The documentation for this class was generated from the following files:
Generated on Tue Mar 13 19:55:13 2007 by  doxygen 1.5.1