Lines Matching refs:socket

12 | KCM socket |   | KCM socket |   | KCM socket |   | KCM socket |
43 written on a KCM socket are sent atomically on an appropriate TCP socket.
44 Similarly, in the receive path, messages are constructed on each TCP socket
45 (Psock) and complete messages are steered to a KCM socket.
51 for each bound TCP socket, this structure holds the state for constructing
60 can be used to send and receive messages from the KCM socket.
65 KCM supports SOCK_DGRAM and SOCK_SEQPACKET socket types.
76 Filter (BPF) is used for this. When attaching a TCP socket to a multiplexor a
81 to a KCM socket.
83 TCP socket management
86 When a TCP socket is attached to a KCM multiplexor data ready (POLLIN) and
88 is a state change (disconnection) or other error on a TCP socket, an error is
89 posted on the TCP socket so that a POLLERR event happens and KCM discontinues
90 using the socket. When the application gets the error notification for a
91 TCP socket, it should unattach the socket from KCM and then handle the error
92 condition (the typical response is to close the socket and create a new
96 socket buffer on the attached TCP socket (the socket buffer size can be set by
99 socket. The BPF program may also enforce a maximum messages size and report an
102 A timeout may be set for assembling messages on a receive socket. The timeout
103 value is taken from the receive timeout of the attached TCP socket (this is set
105 (ETIMEDOUT) is posted on the socket.
113 A new multiplexor and initial KCM socket is created by a socket call:
115 socket(AF_KCM, type, protocol)
123 After the first KCM socket is created using the socket call as described
125 a KCM socket. This is accomplished by an ioctl on a KCM socket:
145 ioctl on a KCM socket for the multiplexor. e.g.:
163 fd: file descriptor for TCP socket being attached
169 Unattaching a transport socket from a multiplexor is straightforward. An
185 Disabling receive on KCM socket
188 A setsockopt is used to disable or enable receiving on a KCM socket.
189 When receive is disabled, any pending messages in the socket's
231 In an Nx1 configuration, KCM logically provides multiple socket handles
233 operations on the TCP socket (for instance copyin and copyout of data is
234 parallelized). In an application, a KCM socket can be opened for each
246 each received message to a different KCM socket or steering each sent
247 message to a different TCP socket, can negatively impact performance
252 messages on a KCM socket.
260 same KCM socket during each TCP ready callback. The targeted KCM socket
261 changes at each receive ready callback on the KCM socket. The application
269 TCP socket attached to a KCM multiplexor in epoll set for POLLERR
270 event. If an error occurs on an attached TCP socket, KCM sets an EPIPE
271 on the socket thus waking up the application thread. When the application
273 socket from KCM and then close it. It is assumed that once an error is
274 posted on the TCP socket the data stream is unrecoverable (i.e. an error
280 In KCM there is no means to correlate a message to the TCP socket that
282 only one attached TCP socket). However, the application does retain
283 an open file descriptor to the socket so it will be able to get statistics
284 from the socket which can be used in detecting issues (such as high
285 retransmissions on the socket).