Logo Search packages:      
Sourcecode: vdccm version File versions

TCPConnectedSocket Class Reference

#include <tcpconnectedsocket.h>

Inheritance diagram for TCPConnectedSocket:

TCPSocket NetSocket Descriptor TCPAcceptedSocket TCPClientSocket

List of all members.


Detailed Description

Author:
Volker Christian

Definition at line 33 of file tcpconnectedsocket.h.


Public Types

enum  eventType { READ = 0, WRITE, EXCEPTION }

Public Member Functions

virtual bool close ()
 Closes the descriptor.
bool dataPending (int sec, int usec) const
 Check if data are pending to read.
std::string getConfiguredLocalInterfaceName () const
uint16_t getConfiguredLocalPort () const
int getDescriptor () const
 Returns the integer value which represents the descriptor by the underlying Operating System.
std::string getLocalAddress () const
std::string getLocalInterfaceName () const
uint16_t getLocalPort () const
struct sockaddr_in getLocalSinAddr () const
int getMTU ()
std::string getRemoteAddress () const
uint16_t getRemotePort () const
struct sockaddr_in getRemoteSinAddr () const
bool isConnected () const
bool operator< (const Descriptor &descriptor) const
 Lesser-operator on the descriptor base.
ssize_t readNumBytes (unsigned char *buffer, size_t number) const
bool setBlocking ()
bool setNonBlocking ()
bool setReadTimeout (int sec, int usec)
bool setWriteTimeout (int sec, int usec)
virtual bool shutdown ()
 TCPConnectedSocket (uint16_t port, std::string interfaceName)
bool writable (int sec, int usec)

Protected Member Functions

virtual bool bind ()
virtual void event (enum eventType et)=0
void setConnected (bool connected)
void setDescriptor (int descriptor)
bool setSocket (int fd)
virtual bool socket ()

Protected Attributes

std::string interfaceName
struct sockaddr_in localAddress
uint16_t port

Static Protected Attributes

static int FFALSE = 0
static int FTRUE = 1
static unsigned long int INADDRANY = INADDR_ANY

Private Member Functions

bool setSocket (int descriptor, struct sockaddr_in remoteAddress)

Private Attributes

bool connected
struct sockaddr_in remoteAddress

Friends

class TCPClientSocket

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index