- Главная
- Информатика
- IPC (inter-process communication), обмен данными между потоками одного или разных процессов
Содержание
Слайд 28BSD Server
The BSD server creates a socket, uses bind to attach that
BSD Server
The BSD server creates a socket, uses bind to attach that
socket to a port, and configures it as a listening socket. This allows the server to receive incoming connection requests.
Afterwards, accept is called, which will block the socket, until an incoming connection request is received.
When accept returns, the SOCKADDR structure will have been filled out with the originating IP Address and port of the incoming connection.
Then, accept creates a new socket, which is then used to receive data until the connection is closed by the other side.
Afterwards, accept is called, which will block the socket, until an incoming connection request is received.
When accept returns, the SOCKADDR structure will have been filled out with the originating IP Address and port of the incoming connection.
Then, accept creates a new socket, which is then used to receive data until the connection is closed by the other side.