acl/lib_acl/include/net/acl_host_port.h

28 lines
525 B
C
Raw Normal View History

2014-11-19 00:25:21 +08:00
#ifndef ACL_HOST_PORT_INCLUDE_H
#define ACL_HOST_PORT_INCLUDE_H
#ifdef __cplusplus
extern "C" {
#endif
2017-06-02 14:47:24 +08:00
#include "../stdlib/acl_define.h"
2014-11-19 00:25:21 +08:00
/* External interface. */
/**
* [host]:port, [host]:, [host].
* or
* host:port, host:, host, :port, port.
*/
ACL_API const char *acl_host_port(char *buf, const char **host,
const char *def_host, const char **port, const char *def_service);
2014-11-19 00:25:21 +08:00
ACL_API struct addrinfo *acl_host_addrinfo(const char *addr, int type);
2014-11-19 00:25:21 +08:00
#ifdef __cplusplus
}
#endif
#endif