svcudp_create()
Format
#include <rpc.h>
SVCXPRT *
svcudp_create(sockp, send_buf_size, recv_buf_size)
int sock;
u_int send_buf_size;
u_int recv_buf_size;
Parameters
- sock
- Specifies the socket associated with the service transport handle. If sock is RPC_ANYSOCK, a new socket is created.
- send_buf_size
- Specifies the size of the send buffer. Specify 0 to choose the default.
- recv_buf_size
- Specifies the size of the receive buffer. Specify 0 to choose the default.
Usage
The svcudp_create() call creates a UDP-based service transport to which it returns a pointer. xprt—>xp_sock contains the transport socket descriptor. xprt—>xp_port contains the transport port number.
Return codes
NULL indicates failure.
Context
- svcraw_create()
- svctcp_create()