X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FConsole%2FUDPServer.hh;h=b5a91d087f3b4b9c5ff0b1b002edd9e333c72bf5;hb=9a4ab28bb53bc1a7719141a2263282d4cf73b258;hp=7ee589a9c151ddf0f0281a1d2a7c386780e7c2e1;hpb=731a143df4de38d4c8b0a81121990951971cd858;p=senf.git diff --git a/Utils/Console/UDPServer.hh b/Utils/Console/UDPServer.hh index 7ee589a..b5a91d0 100644 --- a/Utils/Console/UDPServer.hh +++ b/Utils/Console/UDPServer.hh @@ -40,7 +40,19 @@ namespace senf { namespace console { - /** \brief + /** \brief 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). + + \ingroup console_access */ class UDPServer : public boost::noncopyable @@ -60,14 +72,18 @@ namespace console { ///@{ explicit UDPServer(senf::INet4SocketAddress const & address); + ///< Open UDP server on \a address explicit UDPServer(senf::INet6SocketAddress const & address); + ///< Open UDP server on \a address ///@} /////////////////////////////////////////////////////////////////////////// - UDPServer & replies(bool enable); + UDPServer & replies(bool enable); ///< Enable or disable reply packets UDPServer & replies(senf::INet4SocketAddress const & address); + ///< Send replies to \a address UDPServer & replies(senf::INet6SocketAddress const & address); + ///< Send replies to \a address DirectoryNode & root() const; ///< Get root node