MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / addPolledSocket

Function addPolledSocket

Engine/source/platform/platformNet.cpp:561–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559static Vector<PolledSocket*> gPolledSockets( __FILE__, __LINE__ );
560
561static PolledSocket* addPolledSocket(NetSocket handleFd, SOCKET fd, S32 state,
562 char* remoteAddr = NULL, S32 port = -1)
563{
564 PolledSocket* sock = new PolledSocket();
565 sock->fd = fd;
566 sock->handleFd = handleFd;
567 sock->state = state;
568 if (remoteAddr)
569 dStrcpy(sock->remoteAddr, remoteAddr);
570 if (port != -1)
571 sock->remotePort = port;
572 gPolledSockets.push_back(sock);
573 return sock;
574}
575
576bool netSocketWaitForWritable(NetSocket handleFd, S32 timeoutMs)
577{

Callers 3

openListenPortMethod · 0.70
openConnectToMethod · 0.70
processMethod · 0.70

Calls 2

dStrcpyFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected