MCPcopy Create free account
hub / github.com/bwapi/bwapi / init

Method init

bwapi/SNP_DirectIP/SNP/UDPSocket.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void UDPSocket::init()
31{
32 release();
33 _s = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
34 _bound = 0;
35 if(_s == INVALID_SOCKET)
36 {
37 throw GeneralException("socket failed");
38 }
39}
40
41void UDPSocket::release() throw()
42{

Callers 2

rebindFunction · 0.45
spiInitializeFunction · 0.45

Calls 1

GeneralExceptionClass · 0.85

Tested by

no test coverage detected