Open Lighting Architecture: ola::rpc::TCPAcceptingSocket Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | List of all members
ola::rpc::TCPAcceptingSocket Class Reference
Inheritance diagram for ola::rpc::TCPAcceptingSocket:

## 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

## ◆ ~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:

- include/ola/network/TCPSocket.h
- common/network/TCPSocket.cpp