Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/libco
/ sockaddr
Class
sockaddr
example_poll.cpp:98–98 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
96
struct sockaddr_in addr ;
97
SetAddr(pszIP,shPort,addr);
98
int ret = bind(fd,(struct sockaddr*)&addr,sizeof(addr));
99
if( ret != 0)
100
{
101
close(fd);
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected