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

Method requestAds

bwapi/SNP_DirectIP/SNP/LocalPC.cpp:120–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 session.release();
119 }
120 void LocalPC::requestAds()
121 {
122 processIncomingPackets();
123
124 INTERLOCKED;
125 for(int i = 0; i < 8; i++)
126 {
127 if(shd->peer[i].isOccupied())
128 {
129 if(shd->peer[i].isAdvertising)
130 {
131 passAdvertisement(i, Util::MemoryFrame::from(shd->peer[i].ad));
132 }
133 }
134 }
135 }
136 void LocalPC::sendAsyn(const int& him, Util::MemoryFrame packet)
137 {
138 processIncomingPackets();

Callers 1

spiUnlockGameListFunction · 0.45

Calls 2

passAdvertisementFunction · 0.85
isOccupiedMethod · 0.45

Tested by

no test coverage detected