199 vpUDPServer(
const std::string &hostname,
int port);
202 int receive(std::string &msg,
int timeoutMs = 0);
203 int receive(std::string &msg, std::string &hostInfo,
int timeoutMs = 0);
204 int send(
const std::string &msg,
const std::string &hostname,
int port);
207 char m_buf[VP_MAX_UDP_PAYLOAD];
208 struct sockaddr_in m_clientAddress;
210 struct sockaddr_in m_serverAddress;
211#if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
212 int m_socketFileDescriptor;
214 SOCKET m_socketFileDescriptor;
218 void init(
const std::string &hostname,
int port);