You copied the Doc URL to your clipboard.

6.1.5. udp_send()

This function sends a UDP datagram to the foreign host in pkt->fhost. Local and remote ports in the UDP header are set from the values passed.

Syntax

int udp_send(unsigned short fport,              unsigned short lport,              PACKET pkt);

where:

fport

Is the target UDP port.

lport

Is the local UDP port.

pkt

Is the packet to send, with nb_prot, nb_plen, and fhost (members of the PACKET structure) set.

Return value

Returns one of the following:

0

If successful.

ENP_Code

If not successful (see ENP_ error codes).

Was this page helpful? Yes No