Open Lighting Architecture  Latest Git
Public Member Functions | List of all members
ola::network::TCPAcceptingSocket Class Reference
Inheritance diagram for ola::network::TCPAcceptingSocket:
Inheritance graph
[legend]
Collaboration diagram for ola::network::TCPAcceptingSocket:
Collaboration graph
[legend]

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. More...
 
bool Close ()
 
void PerformRead ()
 Called when there is data available on the descriptor. More...
 
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. More...
 

Constructor & Destructor Documentation

◆ ~TCPAcceptingSocket()

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

Clean up

Member Function Documentation

◆ GetLocalAddress()

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

Get the local IPAddress and port for this socket

◆ PerformRead()

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.

◆ ReadDescriptor()

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: