acl/lib_acl/include/net/acl_host_port.h
2014-11-19 00:25:21 +08:00

26 lines
424 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);
#ifdef __cplusplus
}
#endif
#endif