TCP/IP Programming Manual
• The length of the received data is given in the third parameter (count transferred) returned
from the AWAITIOX procedure. This length includes the address information given by
sizeof(sockaddr_in) at the beginning of the buffer.
• Note that the MSG_OOB option is not available. This is a constraint imposed by UDP. UDP
does not support out-of-band data.
See Nowait Call Errors (page 86) for information on checking errors.
t_recvfrom_nw64_
The t_recvfrom_nw64_ function receives data on an unconnected UDP socket or raw socket
created for nowait operations. This routine is replaced by the recvfrom_nw64_ routine.
C Synopsis
#include <socket.h>
#include <in.h>
#include <netdb.h>
error = t_recvfrom_nw64_ (socket, r_buffer_ptr64, length,
flags, tag );
int socket, length, error, flags;
struct sendto_recvfrom_buf _ptr64 *r_buffer_ptr64;
long long tag;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
error := t_recvfrom_nw64_ (socket, r_buffer_ptr64, length,
flags, tag );
INT socket,
length,
flags;
INT .EXT64 r_buffer_ptr64(sendto_recvfrom_buf);
INT(64) tag;
error
return value; if the call is successful, a zero is returned. If the call is not successful, –1 is returned.
If the call fails, the external variable errno is set as shown in Errors (page 204).
socket
input value; specifies the socket number for the socket, as returned by the call to socket_nw.
r_buffer_ptr64
input and return value; on completion, points to the remote address and port number from
which the data is received, followed by the data. The address of the data is (r_buffer_ptr64
+ sizeof(struct sockaddr_in)), where sizeof(struct sockaddr_in) is 16
bytes.
length
input value; the size of the buffer pointed to by r_buffer_ptr64. The size of the buffer is
the size of the data plus sizeof(struct sockaddr_in), where sizeof(struct
sockaddr_in) is 16 bytes.
t_recvfrom_nw64_ 203