Changeset 668 for trunk/kernel/kern/ksocket.h
- Timestamp:
- Oct 10, 2020, 6:38:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/ksocket.h
r662 r668 421 421 * It is called by a (local) server process to specify the max size of the CRQ queue 422 422 * for a socket identified by the <fdid> argument, that expect connection requests 423 * from one or several (remote) client processes. 423 * from one or several (remote) client processes. The selected socket CRQ is supposed 424 424 * to register all connections requests, whatever the client IP address and port values. 425 * 425 426 * This function applies only to a TCP socket, that must be in the BOUND state. 426 * The <fdid>socket is set to the LISTEN state.427 * The socket is set to the LISTEN state. 427 428 * It does not require any service from the NIC_TX and NIC_RX server threads. 428 429 * It can be called by a thread running in any cluster. … … 451 452 * with bind(), and listening for connections after a listen(). It blocks on the <IO> 452 453 * condition if the CRQ is empty. Otherwise, it get a pending connection request from 453 * the listening socket CRQ queue, and creates & initializes a new socket with 454 * the same properties as the listening socket, allocating a new file descriptor 455 * for this new socket. It returns the new socket fdid as well as the remote IP address 454 * the listening socket CRQ queue, and creates a new socket with the same properties 455 * as the listening socket, allocating a new file descriptor for this new socket. 456 * It computes the nic_channel index [k] from <remote_addr> and <remote_port> values, 457 * and initializes "remote_addr","remote_port", "nic_channel" in local socket. 458 * It returns the new socket fdid as well as the remote IP address 456 459 * and port, but only when the new socket is set to the ESTAB state. The new socket 457 460 * cannot accept connections, but the listening socket keeps open for new connections.
Note: See TracChangeset
for help on using the changeset viewer.