![]() |
![]()
| ![]() |
![]()
NAMEsocket_send6 - send a UDP datagram SYNTAX#include <libowfat/socket.h> ssize_t socket_send6(int s, const char* buf,
size_t len,
DESCRIPTIONsocket_send6 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_send6 without calling socket_bind6. This has the effect as first calling socket_bind6 with IP address :: and port 0. The meaning of scope_id is dependent on the implementation and IPv6 IP. On link-local IPv6 addresses it specifies the outgoing interface index. The name (e.g. "eth0") for a given interface index can be queried with getifname. scope_id should normally be set to 0. RETURN VALUEsocket_send6 returns 0 if the datagram was sent successfully. If not, it returns -1 and sets errno appropriately. EXAMPLE#include <libowfat/socket.h>
SEE ALSOsocket_send4(3), socket_getifidx(3)
|