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

Function abortconnect

source/src/client.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45bool modprotocol = false;
46
47void abortconnect()
48{
49 if(!connpeer) return;
50 clientpassword[0] = '\0';
51 connectrole = CR_DEFAULT;
52 if(connpeer->state!=ENET_PEER_STATE_DISCONNECTED) enet_peer_reset(connpeer);
53 connpeer = NULL;
54}
55
56void connectserv_(const char *servername, int serverport = 0, const char *password = NULL, int role = CR_DEFAULT)
57{

Callers 4

connectserv_Function · 0.85
trydisconnectFunction · 0.85
cleanupclientFunction · 0.85
gets2cFunction · 0.85

Calls 1

enet_peer_resetFunction · 0.85

Tested by

no test coverage detected