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

Method setBroadcast

Engine/source/platform/platformNet.cpp:1594–1604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1592}
1593
1594Net::Error Net::setBroadcast(NetSocket handleFd, bool broadcast)
1595{
1596 S32 bc = broadcast;
1597 SOCKET socketFd = PlatformNetState::smReservedSocketList.resolve(handleFd);
1598 if (socketFd == InvalidSocketHandle)
1599 return NotASocket;
1600 S32 error = ::setsockopt(socketFd, SOL_SOCKET, SO_BROADCAST, (char*)&bc, sizeof(bc));
1601 if(!error)
1602 return NoError;
1603 return PlatformNetState::getLastError();
1604}
1605
1606Net::Error Net::setBlocking(NetSocket handleFd, bool blockingIO)
1607{

Callers

nothing calls this directly

Calls 2

getLastErrorFunction · 0.70
resolveMethod · 0.45

Tested by

no test coverage detected