MCPcopy Index your code
hub / github.com/assaultcube/AC / connectwithtimeout

Function connectwithtimeout

source/src/serverms.cpp:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11int connectwithtimeout(ENetSocket sock, const char *hostname, ENetAddress &remoteaddress)
12{
13 int result = enet_socket_connect(sock, &remoteaddress);
14 if(result<0) enet_socket_destroy(sock);
15 return result;
16}
17#endif
18
19extern struct servercommandline scl;

Callers 1

connectmasterFunction · 0.70

Calls 2

enet_socket_connectFunction · 0.50
enet_socket_destroyFunction · 0.50

Tested by

no test coverage detected