218 vpUDPServer(
const std::string &hostname,
int port);
221 int receive(std::string &msg,
int timeoutMs = 0);
222 int receive(std::string &msg, std::string &hostInfo,
int timeoutMs = 0);
223 int send(
const std::string &msg,
const std::string &hostname,
int port);
226 char m_buf[VP_MAX_UDP_PAYLOAD];
227 struct sockaddr_in m_clientAddress;
229 struct sockaddr_in m_serverAddress;
230#if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
231 int m_socketFileDescriptor;
233 SOCKET m_socketFileDescriptor;
237 void init(
const std::string &hostname,
int port);