10 #include <sys/socket.h>
11 #include <arpa/inet.h>
17 int w_connect(
struct addrinfo *ai,
int die) ;
20 int ai_connect(
struct addrinfo *ai,
int die,
int free_ai);
21 ssize_t
w_send(
int sk,
const void *buf,
size_t len,
int die) ;
22 ssize_t
w_recv(
int sk,
void *buf,
size_t len,
int die);
23 ssize_t
w_send_timeout(
int s,
const void *buf,
size_t len,
int die,
int timeout);
24 ssize_t
w_recv_timeout(
int s,
void *buf,
size_t len,
int die,
int timeout);
26 void *anbuf,
size_t anlen,
int die,
int free_ai,
int timeout);
28 size_t buflen,
void *anbuf,
size_t anlen,
int die,
int timeout);
int w_socket(int family, int type, int proto, int die)
Definition: andns_net.c:48
int w_connect(struct addrinfo *ai, int die)
Definition: andns_net.c:61
int idp_inet_ntop(int family, struct sockaddr *addr, char *buf, int buflen)
Definition: andns_net.c:24
int host_connect(const char *host, uint16_t port, int type, int die)
Definition: andns_net.c:104
ssize_t w_send(int sk, const void *buf, size_t len, int die)
Definition: andns_net.c:141
int serial_connect(struct addrinfo *ai, int die)
Definition: andns_net.c:74
int type
Definition: krnl_route.c:49
ssize_t w_recv(int sk, void *buf, size_t len, int die)
Definition: andns_net.c:154
ssize_t hn_send_recv_close(const char *host, uint16_t port, int type, void *buf, size_t buflen, void *anbuf, size_t anlen, int die, int timeout)
Definition: andns_net.c:234
int ai_connect(struct addrinfo *ai, int die, int free_ai)
Definition: andns_net.c:129
ssize_t w_send_timeout(int s, const void *buf, size_t len, int die, int timeout)
Definition: andns_net.c:180
ssize_t w_recv_timeout(int s, void *buf, size_t len, int die, int timeout)
Definition: andns_net.c:204
int family
Definition: if.c:34
ssize_t ai_send_recv_close(struct addrinfo *ai, void *buf, size_t buflen, void *anbuf, size_t anlen, int die, int free_ai, int timeout)
Definition: andns_net.c:259
void char_print(char *buf, int len)
Definition: andns_net.c:284