MCPcopy Create free account
hub / github.com/Tencent/libco / sockaddr

Class sockaddr

example_echocli.cpp:118–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 struct sockaddr_in addr;
117 SetAddr(endpoint->ip, endpoint->port, addr);
118 ret = connect(fd,(struct sockaddr*)&addr,sizeof(addr));
119
120 if ( errno == EALREADY || errno == EINPROGRESS )
121 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected