The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
andns_net.h
Go to the documentation of this file.
1 #ifndef ANDNS_NET_H
2 #define ANDNS_NET_H
3 
4 #include <errno.h>
5 #include <netdb.h>
6 #include <unistd.h>
7 #include <stdio.h>
8 #include <string.h>
9 #include <sys/types.h>
10 #include <sys/socket.h>
11 #include <arpa/inet.h>
12 
13 
14 
15 int idp_inet_ntop(int family,struct sockaddr *addr,char *buf,int buflen);
16 int w_socket(int family,int type, int proto,int die);
17 int w_connect(struct addrinfo *ai,int die) ;
18 int serial_connect(struct addrinfo *ai,int die);
19 int host_connect(const char *host,uint16_t port,int type,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);
25 ssize_t ai_send_recv_close(struct addrinfo *ai,void *buf,size_t buflen,
26  void *anbuf,size_t anlen,int die,int free_ai,int timeout);
27 ssize_t hn_send_recv_close(const char *host,uint16_t port,int type,void *buf,
28  size_t buflen,void *anbuf,size_t anlen,int die,int timeout);
29 void char_print(char *buf, int len);
30 
31 
32 #endif /* ANDNS_NET_H */
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