Lines Matching +full:2 +full:a

9 .\" 2. Redistributions in binary form must reproduce the above copyright
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44 creates an endpoint for communication and returns a descriptor.
48 argument specifies a communications domain within which
105 specifies a particular protocol to be used with the socket.
106 Normally only a single protocol exists to support a particular
107 socket type within a given protocol family.
109 that many protocols may exist, in which case a particular protocol
120 implementation of a socket type for the protocol, if any.
125 the socket and a peer to which the socket is connected.
126 A socket of type
128 needs to be in a
131 A connection to another socket is created with a
132 .Xr connect 2
137 which permits data to be sent piggybacked onto a connect operation by
139 .Xr sendto 2
142 .Xr send 2 ,
143 .Xr sendto 2 ,
144 .Xr sendmsg 2
146 .Xr write 2
149 .Xr recv 2 ,
150 .Xr recvfrom 2 ,
151 .Xr recvmsg 2 ,
153 .Xr read 2
155 Record boundaries are not maintained; data sent on a stream socket using output
162 .Xr send 2
164 .Xr recv 2 .
166 If data cannot be successfully transmitted within a given time then the
168 a protocol specific error code.
169 A
171 signal is raised if a thread attempts to send data on a broken stream (one that
176 .Xr send 2 ,
177 .Xr sendto 2 ,
179 .Xr sendmsg 2
183 .Xr setsockopt 2 .
210 .Xr recvfrom 2
212 .Xr recvmsg 2 .
213 An application can also pre-specify a peer address with
214 .Xr sendto 2
216 .Xr sendmsg 2 ,
217 in which case calls to output functions that do not specify a peer address
219 If a peer has been specified, only datagrams from that peer shall be received.
220 A datagram shall be sent in a single output operation, and needs to be received
221 in a single input operation.
222 The maximum size of a datagram is protocol-specific.
223 Output datagrams may be buffered within the system; thus, a successful return
224 from an output function does not guarantee that a datagram is actually sent or
246 A record can be sent using one or more output operations and received using one
247 or more input operations, but a single operation never transfers parts of more
252 .Xr send 2
254 .Xr sendmsg 2
256 There is no possibility to set a record boundary with
257 .Xr write 2 .
261 .Xr recvmsg 2
263 It is protocol-specific whether a maximum record size is imposed.
277 It is a datagram socket in its nature, thus has the same semantics of
286 A socket can be created in
291 Alternatively, the non-blocking mode on a socket can be turned on and off with
295 .Xr fcntl 2
298 When a non-blocking socket has not enough data in its receive buffer to fulfill
300 .Xr recv 2 ,
301 .Xr recvfrom 2 ,
302 .Xr recvmsg 2
304 .Xr read 2
316 If application tries to send more data on a non-blocking socket than the socket
318 .Xr send 2 ,
319 .Xr sendto 2 ,
320 .Xr sendmsg 2
322 .Xr write 2
338 .Xr fcntl 2 ,
341 .Xr kevent 2 ,
342 .Xr select 2
344 .Xr poll 2 .
347 .Xr fcntl 2
348 system call can be used to specify a process group to receive
349 a
362 .Xr setsockopt 2
364 .Xr getsockopt 2
367 Connection associated with a socket can be terminated by
368 .Xr close 2
371 .Xr shutdown 2 .
373 A -1 is returned if an error occurs, otherwise the return
374 value is a descriptor referencing the socket.
381 Permission to create a socket of the specified type and/or protocol
402 .Xr accept 2 ,
403 .Xr bind 2 ,
404 .Xr close 2 ,
405 .Xr connect 2 ,
406 .Xr fcntl 2 ,
407 .Xr getpeername 2 ,
408 .Xr getsockname 2 ,
409 .Xr getsockopt 2 ,
410 .Xr ioctl 2 ,
411 .Xr kevent 2 ,
412 .Xr listen 2 ,
413 .Xr poll 2 ,
414 .Xr read 2 ,
415 .Xr recv 2 ,
416 .Xr select 2 ,
417 .Xr send 2 ,
418 .Xr sendmsg 2 ,
419 .Xr sendto 2 ,
421 .Xr shutdown 2 ,
422 .Xr socketpair 2 ,
423 .Xr write 2 ,