Content deleted Content added
m Added link |
m →Server accept a connection: Added link |
||
Line 265:
==Server accept a connection==
After opening a ''listen'' channel, the server enters an infinite [[While loop|loop]]. Inside the loop is a system call to <code>accept()</code>, which puts itself to sleep.<ref name="unp-p14_quote"/> The <code>accept()</code> system call will return a file descriptor when a client process executes <code>connect()</code>.<ref>{{cite web
|title=Linux manual page for accept()
|url=https://man7.org/linux/man-pages/man2/accept.2.html}}</ref>
|