28 #ifndef PTLIB_PSTUNSRVR_H
29 #define PTLIB_PSTUNSRVR_H
48 bool Open(WORD port = DefaultPort);
69 SocketInfo & socketInfo
72 virtual bool Process();
74 virtual bool OnReceiveMessage(
76 const SocketInfo & socketInfo
79 virtual bool OnBindingRequest(
81 const SocketInfo & socketInfo
84 virtual void OnBindingResponse(
89 virtual bool OnUnknownRequest(
91 const SocketInfo & socketInfo
100 typedef std::map<PUDPSocket *, SocketInfo> SocketToSocketInfoMap;
101 SocketToSocketInfoMap m_socketToSocketInfoMap;
113 #endif // PTLIB_PSTUNSRVR_H
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:2164
A socket channel that uses the UDP transport on the Internet Protocol.
Definition: udpsock.h:42
List of sockets used for Select() function.
Definition: socket.h:312
A class describing an IP address and port number combination.
Definition: ipsock.h:278
#define PTRACE_THROTTLE(var,...)
Definition: object.h:1082
A class describing an IP address.
Definition: ipsock.h:59
Ultimate parent class for all objects in the class library.
Definition: object.h:2204