MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / xnOSMillisecsToTimeVal

Function xnOSMillisecsToTimeVal

Source/OpenNI/Win32/Win32Network.cpp:229–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229static struct timeval* xnOSMillisecsToTimeVal(XnUInt32 nMilliseconds, struct timeval* pTv)
230{
231 if (nMilliseconds == XN_WAIT_INFINITE)
232 {
233 return NULL;
234 }
235
236 pTv->tv_sec = nMilliseconds / 1000; //Seconds
237 pTv->tv_usec = (nMilliseconds % 1000) * 1000; //Microseconds
238 return pTv;
239}
240
241XN_C_API XnStatus xnOSAcceptSocket(XN_SOCKET_HANDLE ListenSocket, XN_SOCKET_HANDLE* AcceptSocketPtr, XnUInt32 nMillisecondsTimeout)
242{

Callers 3

xnOSAcceptSocketFunction · 0.70
xnOSConnectSocketFunction · 0.70
xnOSReceiveNetworkBufferFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected