![]() |
|
| << Previous | Index | Next >> | |
| | |
int sock_recv( sock_type *s, char *buffer, int len );
Description
After a UDP socket is initialized with
udp_open()andsock_recv_init(),sock_recv()scans the buffers for any datagram received by that socket.This function is not available starting with Dynamic C 7.05 (see Section 3.5).
Parameters
s
- Pointer to a UDP socket.
buffer
- Buffer to put datagram.
maxlength
- Length of buffer.
Return value
>0: Length of datagram.0: No datagram found.-1: Receive buffer not initialized withsock_recv_init().Library
DCRTCP.LIB
See also
Example using sock_recv()
| TCP/IP Manual Vol 1 |
<<Previous | Index | Next>> | rabbit.com |