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

addr.c File Reference

Go to the source code of this file.

Functions

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


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 *  addr,
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 *  addr,
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 *  addr,
struct sockaddr *  sa,
size_t  sz
) 
 

Definition at line 125 of file addr.c.

References addr_t.

int addr_set_ipv4_ip (  addr_t *  addr,
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 *  addr,
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