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

Function rebind

bwapi/SNP_DirectIP/SNP/DirectIP.cpp:29–46  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

27
28 //------------------------------------------------------------------------------------------------------------------------------------
29 void rebind()
30 {
31 int targetPort = atoi(getLocalPortString());
32 if(session.getBoundPort() == targetPort)
33 return;
34 try
35 {
36 session.release();
37 session.init();
38 session.setBlockingMode(false);
39 session.bind(targetPort);
40 setStatusString("network ready");
41 }
42 catch(...)
43 {
44 setStatusString("local port fail");
45 }
46 }
47 void DirectIP::processIncomingPackets()
48 {
49 try

Callers 3

initializeMethod · 0.85
requestAdsMethod · 0.85
startAdvertisingMethod · 0.85

Calls 7

getLocalPortStringFunction · 0.85
setStatusStringFunction · 0.85
getBoundPortMethod · 0.80
setBlockingModeMethod · 0.80
bindMethod · 0.80
releaseMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected