diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-17 14:10:44 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-17 14:10:44 -0400 |
| commit | 76bc9968ff0ec7d044042f9214fa59efb3146685 (patch) | |
| tree | 23eb792895eb5b4b3cffafd4127bbeb3da7d9fa6 /node/UdpSocket.hpp | |
| parent | 557cc359b30aacff372f1b92a8f0f621fcd9c50f (diff) | |
| download | infinitytier-76bc9968ff0ec7d044042f9214fa59efb3146685.tar.gz infinitytier-76bc9968ff0ec7d044042f9214fa59efb3146685.zip | |
New simpler command interface via loopback UDP protected by a crypto token.
Diffstat (limited to 'node/UdpSocket.hpp')
| -rw-r--r-- | node/UdpSocket.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/node/UdpSocket.hpp b/node/UdpSocket.hpp index be407d56..a3223f1f 100644 --- a/node/UdpSocket.hpp +++ b/node/UdpSocket.hpp @@ -46,6 +46,7 @@ public: /** * Create and bind a local UDP socket * + * @param localOnly If true, bind to loopback address only * @param localPort Local port to listen to * @param ipv6 If true, bind this as an IPv6 socket, otherwise IPv4 * @param packetHandler Function to call when packets are read @@ -53,6 +54,7 @@ public: * @throws std::runtime_error Unable to bind */ UdpSocket( + bool localOnly, int localPort, bool ipv6, void (*packetHandler)(UdpSocket *,void *,const InetAddress &,const void *,unsigned int), |
