diff --git a/reference/sockets/functions/socket-recvfrom.xml b/reference/sockets/functions/socket-recvfrom.xml index 5ccaa269e3..4418487369 100644 --- a/reference/sockets/functions/socket-recvfrom.xml +++ b/reference/sockets/functions/socket-recvfrom.xml @@ -1,5 +1,5 @@ - + socket_recvfrom @@ -76,13 +76,13 @@ flags - The following table contains the different flags that can be set using - the flags parameter. Use the OR logic operator - (|) to use more than one flag. + The value of flags can be any combination of + the following flags, joined with the binary OR (|) + operator. - Available flags + Possible values for <parameter>flags</parameter> @@ -92,20 +92,20 @@ - MSG_OOB + MSG_OOB - Receive out-of-band data. + Process out-of-band data. - MSG_PEEK + MSG_PEEK Receive data from the beginning of the receive queue without removing it from the queue. - MSG_WAITALL + MSG_WAITALL Block until at least len are received. However, if a signal is caught or the remote host disconnects, the @@ -113,7 +113,7 @@ - MSG_DONTWAIT + MSG_DONTWAIT With this flag set, the function returns even if it would normally have blocked. @@ -174,20 +174,20 @@ ]]> - This example will initiate a TCP connection to 127.0.0.1 on port 1223 and - print at most 12 characters received from the remote host or block until - data is received. + This example will initiate an UDP socket on port 1223 of 127.0.0.1 and + print at most 12 characters received from a remote host. diff --git a/reference/sockets/functions/socket-send.xml b/reference/sockets/functions/socket-send.xml index 8b0c393023..aed1e7026e 100644 --- a/reference/sockets/functions/socket-send.xml +++ b/reference/sockets/functions/socket-send.xml @@ -1,5 +1,5 @@ - + socket_send @@ -56,40 +56,37 @@ flags - The value of flags can be any - ORed combination of the following: + The value of flags can be any combination of + the following flags, joined with the binary OR (|) + operator.
- possible values for <parameter>flags</parameter> + Possible values for <parameter>flags</parameter> MSG_OOB - Process OOB (out-of-band) data - - - - MSG_PEEK - - Peek at incoming message - - - - MSG_DONTROUTE - - Bypass routing, use direct interface + Send OOB (out-of-band) data. MSG_EOR - Data completes record + Indicate a record mark. The sent data completes the record. MSG_EOF - Data completes transaction + Close the sender side of the socket and include an appropriate + notification of this at the end of the sent data. The sent data + completes the transaction. + + + + MSG_DONTROUTE + + Bypass routing, use direct interface. diff --git a/reference/sockets/functions/socket-sendto.xml b/reference/sockets/functions/socket-sendto.xml index 87628c6276..c4927fdf05 100644 --- a/reference/sockets/functions/socket-sendto.xml +++ b/reference/sockets/functions/socket-sendto.xml @@ -1,5 +1,5 @@ - + socket_sendto @@ -58,22 +58,31 @@ flags - The value of flags can be one of the - following: + The value of flags can be any combination of + the following flags, joined with the binary OR (|) + operator.
- possible values for <parameter>flags</parameter> + Possible values for <parameter>flags</parameter> MSG_OOB - Process OOB (out-of-band) data. + Send OOB (out-of-band) data. - MSG_PEEK + MSG_EOR - Peek at incoming message. + Indicate a record mark. The sent data completes the record. + + + + MSG_EOF + + Close the sender side of the socket and include an appropriate + notification of this at the end of the sent data. The sent data + completes the transaction.