MCPcopy Create free account
hub / github.com/assaultcube/AC / set_port

Method set_port

source/src/http.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void httpget::set_port(int port) // set port (disconnect, if different to previous)
54{
55 port &= 65535;
56 if(port < 80) port = 80;
57 if(port != ip.port) disconnect();
58 ip.port = port;
59}
60
61bool httpget::execcallback(float progress)
62{

Callers 2

pingpckserverFunction · 0.80
dlpackageFunction · 0.80

Calls 1

disconnectFunction · 0.85

Tested by

no test coverage detected