mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 00:40:55 +08:00
29 lines
587 B
C
29 lines
587 B
C
#ifndef ACL_HOST_PORT_INCLUDE_H
|
|
#define ACL_HOST_PORT_INCLUDE_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "../stdlib/acl_define.h"
|
|
|
|
/* External interface. */
|
|
|
|
/**
|
|
* [host]:port, [host]:, [host].
|
|
* or
|
|
* host:port, host:, host, :port, port.
|
|
*/
|
|
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_addrinfo(const char *addr, int type);
|
|
ACL_API struct addrinfo *acl_host_addrinfo2(const char *addr, int type, int family);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|