svcudp_create()

The svcudp_create() call creates a UDP-based service transport.

Syntax

#include <rpc\rpc.h>

SVCXPRT *
svcudp_create(sockp)
int sockp;

Parameters

sockp

Description

The svcudp_create() call creates a UDP-based service transport to which it returns a pointer. xprt->xp_sock contains the transport's socket descriptor. xprt->xp_port contains the transport's port number.

Return Values

NULL indicates failure.

Examples

...SVCXPRT *transp;

transp = svcudp_create(RPC_ANYSOCK);
...

Related Calls


[Back: svctcp_create()]
[Next: xdr_accepted_reply()]