Open Lighting Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
ola::network::TCPSocket Class Reference
Inheritance diagram for ola::network::TCPSocket:
ola::io::ConnectedDescriptor ola::io::BidirectionalFileDescriptor ola::io::ReadFileDescriptor ola::io::WriteFileDescriptor

Public Member Functions

 TCPSocket (int sd)
int ReadDescriptor () const
int WriteDescriptor () const
bool Close ()
GenericSocketAddress GetLocalAddress () const
GenericSocketAddress GetPeerAddress () const
bool SetNoDelay ()
- Public Member Functions inherited from ola::io::ConnectedDescriptor
virtual ssize_t Send (const uint8_t *buffer, unsigned int size)
virtual ssize_t Send (IOQueue *data)
virtual int Receive (uint8_t *buffer, unsigned int size, unsigned int &data_read)
virtual bool SetReadNonBlocking ()
int DataRemaining () const
bool IsClosed () const
void SetOnClose (OnCloseCallback *on_close)
OnCloseCallbackTransferOnClose ()
- Public Member Functions inherited from ola::io::BidirectionalFileDescriptor
void SetOnData (ola::Callback0< void > *on_read)
void SetOnWritable (ola::Callback0< void > *on_write)
void PerformRead ()
void PerformWrite ()
- Public Member Functions inherited from ola::io::ReadFileDescriptor
bool ValidReadDescriptor () const
- Public Member Functions inherited from ola::io::WriteFileDescriptor
bool ValidWriteDescriptor () const

Static Public Member Functions

static TCPSocketConnect (const SocketAddress &endpoint)
- Static Public Member Functions inherited from ola::io::ConnectedDescriptor
static bool SetNonBlocking (int fd)

Protected Member Functions

bool IsSocket () const
- Protected Member Functions inherited from ola::io::ConnectedDescriptor
bool SetNoSigPipe (int fd)
 ConnectedDescriptor (const ConnectedDescriptor &other)
ConnectedDescriptoroperator= (const ConnectedDescriptor &other)

Additional Inherited Members

- Public Types inherited from ola::io::ConnectedDescriptor
typedef
ola::SingleUseCallback0< void > 
OnCloseCallback

Member Function Documentation

GenericSocketAddress ola::network::TCPSocket::GetPeerAddress ( ) const

Get the remote IPAddress and port for this socket


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