UDP Console server. More...

#include <senf/Utils/Console/UDPServer.hh>

Inheritance diagram for senf::console::UDPServer:

Public Types

typedef senf::ClientSocketHandle< senf::MakeSocketPolicy< senf::UDPv4SocketProtocol::Policy, senf::BSDAddressingPolicy >::policy > Handle
 

Public Member Functions

UDPServerreplies (bool enable)
 Enable or disable reply packets. More...
 
UDPServerreplies (senf::INet4SocketAddress const &address)
 Send replies to address. More...
 
UDPServerreplies (senf::INet6SocketAddress const &address)
 Send replies to address. More...
 
UDPServeremptyReplies (bool enable)
 Enable or disable empty reply packets. More...
 
DirectoryNoderoot () const
 Get root node. More...
 
UDPServerroot (DirectoryNode &root)
 Set root node. More...
 

Structors and default members

 UDPServer (senf::INet4SocketAddress const &address)
 Open UDP server on address. More...
 
 UDPServer (senf::INet6SocketAddress const &address)
 Open UDP server on address. More...
 

Detailed Description

UDP Console server.

This class provides UDP access to the console to allow remote scripting. The UDP console does support multicast operation.

Every UDP packet will be executed in a clean context: No directory groups are open/closed, and the current directory is always the root directory.

By default, the server will send command replies via UDP to the sender of the corresponding incoming command. Replies may however either be completely disabled or be sent to a fixed address (which may be a multicast address).

Definition at line 48 of file UDPServer.hh.

Member Typedef Documentation

◆ Handle

Constructor & Destructor Documentation

◆ UDPServer() [1/2]

senf::console::UDPServer::UDPServer ( senf::INet4SocketAddress const &  address)
explicit

Open UDP server on address.

Definition at line 28 of file UDPServer.cc.

◆ UDPServer() [2/2]

senf::console::UDPServer::UDPServer ( senf::INet6SocketAddress const &  address)
explicit

Open UDP server on address.

Definition at line 42 of file UDPServer.cc.

Member Function Documentation

◆ emptyReplies()

senf::console::UDPServer & senf::console::UDPServer::emptyReplies ( bool  enable)

Enable or disable empty reply packets.

Default: enabled

Definition at line 79 of file UDPServer.cc.

◆ replies() [1/3]

senf::console::UDPServer & senf::console::UDPServer::replies ( bool  enable)

Enable or disable reply packets.

Definition at line 55 of file UDPServer.cc.

◆ replies() [2/3]

senf::console::UDPServer & senf::console::UDPServer::replies ( senf::INet4SocketAddress const &  address)

Send replies to address.

Default: enabledDefault: no address set (send replies to sender)

Definition at line 62 of file UDPServer.cc.

◆ replies() [3/3]

senf::console::UDPServer & senf::console::UDPServer::replies ( senf::INet6SocketAddress const &  address)

Send replies to address.

Default: no address set (send replies to sender)

Definition at line 71 of file UDPServer.cc.

◆ root() [1/2]

senf::console::DirectoryNode & senf::console::UDPServer::root ( ) const

Get root node.

Definition at line 85 of file UDPServer.cc.

◆ root() [2/2]

senf::console::UDPServer & senf::console::UDPServer::root ( DirectoryNode root)

Set root node.

node will be the root node for all clients launched from this server.

Definition at line 91 of file UDPServer.cc.


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