Open Lighting Architecture  Latest Git
Public Attributes | List of all members
ola::rpc::RpcServer::Options Struct Reference

Detailed Description

Options for the RpcServer.

Collaboration diagram for ola::rpc::RpcServer::Options:
Collaboration graph
[legend]

Public Attributes

uint16_t listen_port
 The TCP port to listen on. More...
 
class ExportMapexport_map
 The export map to use for stats.
 
ola::network::TCPAcceptingSocketlisten_socket
 The listening TCP socket to wait for clients on. More...
 

Member Data Documentation

◆ listen_port

uint16_t ola::rpc::RpcServer::Options::listen_port

The TCP port to listen on.

If listen_socket is passed, this option is ignored.

◆ listen_socket

ola::network::TCPAcceptingSocket* ola::rpc::RpcServer::Options::listen_socket

The listening TCP socket to wait for clients on.

The socket should be in listening mode, i.e. have had TCPAcceptingSocket::Listen() called.

Ownership of the socket is transferred to the RpcServer. This overrides the listen_port option.


The documentation for this struct was generated from the following file: