Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

addr.h File Reference

Go to the source code of this file.

Data Structures

struct  addr_s

Typedefs

typedef addr_s addr_t

Functions

int addr_create (addr_t **pa)
int addr_set_from_config (addr_t *a, u_config_t *c)
int addr_set_from_sa (addr_t *a, struct sockaddr *sa, size_t sz)
int addr_set (addr_t *a, const char *ip, int port)
int addr_set_ipv4_ip (addr_t *a, const char *ip)
int addr_set_ipv4_port (addr_t *a, int port)
int addr_free (addr_t *a)


Typedef Documentation

typedef struct addr_s addr_t
 

Referenced by addr_create(), addr_free(), addr_set(), addr_set_from_sa(), addr_set_ipv4_ip(), addr_set_ipv4_port(), request_get_addr(), request_get_peer_addr(), request_set_addr(), and request_set_peer_addr().


Function Documentation

int addr_create addr_t **  pa  ) 
 

Definition at line 181 of file addr.c.

References addr_free(), addr_t, addr_s::sa, and addr_s::sin.

int addr_free addr_t a  ) 
 

Definition at line 20 of file addr.c.

References addr_t.

Referenced by addr_create().

int addr_set addr_t a,
const char *  ip,
int  port
 

Definition at line 103 of file addr.c.

References addr_t, addr_s::sa, addr_s::sin, and addr_s::type.

int addr_set_from_config addr_t a,
u_config_t *  c
 

Definition at line 156 of file addr.c.

References addr_set_from_config().

Referenced by addr_set_from_config().

int addr_set_from_sa addr_t a,
struct sockaddr *  sa,
size_t  sz
 

Definition at line 125 of file addr.c.

References addr_t.

int addr_set_ipv4_ip addr_t a,
const char *  ip
 

Definition at line 88 of file addr.c.

References addr_t, addr_s::sa, addr_s::sin, and addr_s::type.

int addr_set_ipv4_port addr_t a,
int  port
 

Definition at line 78 of file addr.c.

References addr_t, addr_s::sa, and addr_s::sin.


←Products
© 2005-2006 - KoanLogic S.r.l. - All rights reserved