19 struct sockaddr_in6 sa;
22 sa.sin6_family = AF_INET6;
25 sa.sin6_scope_id = scope_id;
28 return connect(s,(
struct sockaddr *)&sa,
sizeof(sa));
32int read(
int _str,
void *_buf,
int _b);
36 struct sockaddr_in sa;
39 sa.sin_family = AF_INET;
43 return connect(s,(
struct sockaddr *)&sa,
sizeof(sa));
56 struct sockaddr_in6 sa;
61 if (getpeername(s,(
struct sockaddr *)&sa,(socklen_t *)&dummy) == -1) {
int socket_connect6(int s, const char ip[16], uint16 port, uint32 scope_id)
int socket_connect(int s, const char ip[16], uint16 port, uint32 scope_id)
int socket_connect4(int s, const char ip[4], uint16 port)
int read(int _str, void *_buf, int _b)
int socket_connected(int s)
void uint16_pack_big(char[16], uint16)
#define ip6_isv4mapped(ip)
void byte_copy(void *, unsigned int, const void *)
void byte_zero(void *, unsigned int)