MCPcopy Create free account
hub / github.com/antirez/smallchat / addrinfo

Class addrinfo

chatlib.c:67–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65int TCPConnect(char *addr, int port, int nonblock) {
66 int s, retval = -1;
67 struct addrinfo hints, *servinfo, *p;
68
69 char portstr[6]; /* Max 16 bit number string length. */
70 snprintf(portstr,sizeof(portstr),"%d",port);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected