Content deleted Content added
→Socket instantiation: Added citations |
m →Server listen for a connection: Added link |
||
Line 242:
For a ''Unix ___domain socket'', <code>listen()</code> most likely will succeed and return <code>0</code>. For an ''Internet ___domain socket'', if the port is in use, <code>listen()</code> returns <code>-1</code>.<ref name="man_listen"/>
The <code>backlog</code> parameter sets the [[Queue (abstract data type)|queue]] size for pending connections.<ref name="lpi-p1157">{{cite book
|title=The Linux Programming Interface
|last=Kerrisk
|