acl  3.5.3.0
acl_host_port.h
浏览该文件的文档.
1 #ifndef ACL_HOST_PORT_INCLUDE_H
2 #define ACL_HOST_PORT_INCLUDE_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include "../stdlib/acl_define.h"
9 
10  /* External interface. */
11 
12 /**
13  * [host]:port, [host]:, [host].
14  * or
15  * host:port, host:, host, :port, port.
16  */
17 ACL_API const char *acl_host_port(char *buf, char **host,
18  char *def_host, char **port, char *def_service);
19 
20 ACL_API struct addrinfo *acl_host_addrinfo(const char *addr, int type);
21 ACL_API struct addrinfo *acl_host_addrinfo2(const char *addr, int type, int family);
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif
28 
ACL_API struct addrinfo * acl_host_addrinfo(const char *addr, int type)
ACL_API const char * acl_host_port(char *buf, char **host, char *def_host, char **port, char *def_service)
ACL_API struct addrinfo * acl_host_addrinfo2(const char *addr, int type, int family)