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

Public Member Functions

 TCPAcceptingSocket (class TCPSocketFactoryInterface *factory)
 ~TCPAcceptingSocket ()
bool Listen (const SocketAddress &endpoint, int backlog=10)
ola::io::DescriptorHandle ReadDescriptor () const
 Returns the read descriptor for this socket.
bool Close ()
void PerformRead ()
 Called when there is data available on the descriptor.
void SetFactory (class TCPSocketFactoryInterface *factory)
GenericSocketAddress GetLocalAddress () const
- Public Member Functions inherited from ola::io::ReadFileDescriptor
bool ValidReadDescriptor () const
 Check if this file descriptor is valid.

Constructor & Destructor Documentation

ola::network::TCPAcceptingSocket::~TCPAcceptingSocket ( )

Clean up

Member Function Documentation

GenericSocketAddress ola::network::TCPAcceptingSocket::GetLocalAddress ( ) const

Get the local IPAddress and port for this socket

void ola::network::TCPAcceptingSocket::PerformRead ( )
virtual

Called when there is data available on the descriptor.

This is usually called by the SelectServer.

Implements ola::io::ReadFileDescriptor.

ola::io::DescriptorHandle ola::network::TCPAcceptingSocket::ReadDescriptor ( ) const
inlinevirtual

Returns the read descriptor for this socket.

Returns
the DescriptorHandle for this descriptor.

Implements ola::io::ReadFileDescriptor.


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