![]() |
![]()
| ![]() |
![]()
NAMEsocket_send4 - send a UDP datagram SYNTAX#include <libowfat/socket.h> ssize_t socket_send4(int s, const char* buf,
size_t len,
DESCRIPTIONsocket_send4 sends len bytes starting at buf in a UDP datagram over the socket s to UDP port port on IP address ip. You can call socket_send4 without calling socket_bind4. This has the effect as first calling socket_bind4 with IP address 0.0.0.0 and port 0. RETURN VALUEsocket_send4 returns 0 if the datagram was sent successfully. If not, it returns -1 and sets errno appropriately. EXAMPLE#include <libowfat/socket.h>
SEE ALSOsocket_send6(3)
|