Unix ___domain socket: Difference between revisions

Content deleted Content added
m Server bind to /path/filename: Full sentence requires a period
m Moved link to first occurrence of the term
Line 228:
</syntaxhighlight>
 
[[Snippet (programming)|Snippet]] to listen:
<syntaxhighlight lang="c">
if ( listen( server_socket_fd, 4096 ) == -1 ) assert( 0 );
Line 249:
|url=https://man7.org/linux/man-pages/man2/accept.2.html}}</ref>
 
[[Snippet (programming)|Snippet]] to accept a connection:
<syntaxhighlight lang="c">
int accept_socket_fd;