The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
andns_net.h File Reference
#include <errno.h>
#include <netdb.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
Include dependency graph for andns_net.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int idp_inet_ntop (int family, struct sockaddr *addr, char *buf, int buflen)
 
int w_socket (int family, int type, int proto, int die)
 
int w_connect (struct addrinfo *ai, int die)
 
int serial_connect (struct addrinfo *ai, int die)
 
int host_connect (const char *host, uint16_t port, int type, int die)
 
int ai_connect (struct addrinfo *ai, int die, int free_ai)
 
ssize_t w_send (int sk, const void *buf, size_t len, int die)
 
ssize_t w_recv (int sk, void *buf, size_t len, int die)
 
ssize_t w_send_timeout (int s, const void *buf, size_t len, int die, int timeout)
 
ssize_t w_recv_timeout (int s, void *buf, size_t len, int die, int timeout)
 
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)
 
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)
 
void char_print (char *buf, int len)
 

Function Documentation

int ai_connect ( struct addrinfo *  ai,
int  die,
int  free_ai 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void char_print ( char *  buf,
int  len 
)
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 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int host_connect ( const char *  host,
uint16_t  port,
int  type,
int  die 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int idp_inet_ntop ( int  family,
struct sockaddr *  addr,
char *  buf,
int  buflen 
)

Here is the caller graph for this function:

int serial_connect ( struct addrinfo *  ai,
int  die 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int w_connect ( struct addrinfo *  ai,
int  die 
)

Here is the call graph for this function:

Here is the caller graph for this function:

ssize_t w_recv ( int  sk,
void *  buf,
size_t  len,
int  die 
)

Here is the call graph for this function:

Here is the caller graph for this function:

ssize_t w_recv_timeout ( int  s,
void *  buf,
size_t  len,
int  die,
int  timeout 
)

Here is the call graph for this function:

Here is the caller graph for this function:

ssize_t w_send ( int  sk,
const void *  buf,
size_t  len,
int  die 
)

Here is the call graph for this function:

Here is the caller graph for this function:

ssize_t w_send_timeout ( int  s,
const void *  buf,
size_t  len,
int  die,
int  timeout 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int w_socket ( int  family,
int  type,
int  proto,
int  die 
)

Here is the call graph for this function:

Here is the caller graph for this function: