TCPIP_UDP_SocketNetSet Function

C

bool TCPIP_UDP_SocketNetSet(UDP_SOCKET hUDP, TCPIP_NET_HANDLE hNet); 

Returns

  • true - Indicates success

  • false - Indicates failure

Description

This function sets the network interface for an UDP socket

Remarks

A NULL hNet can be passed (0) so that the current socket network interface selection will be cleared If the hNet != 0, it will enforce UDP_OPTION_STRICT_NET on the socket.

Preconditions

UDP socket should have been opened with TCPIP_UDP_ServerOpen/TCPIP_UDP_ClientOpen. hUDP - valid socket

Parameters

ParametersDescription
hUDPThe UDP socket
hNetinterface handle