Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antirez/smallchat
/ sockaddr
Class
sockaddr
chatlib.c:50–50 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
48
sa.sin_addr.s_addr = htonl(INADDR_ANY);
49
50
if (bind(s,(struct sockaddr*)&sa,sizeof(sa)) == -1 ||
51
listen(s, 511) == -1)
52
{
53
close(s);
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected