| 117 | } |
| 118 | |
| 119 | const char* aio_stream::get_ip(const char* addr, std::string& out) |
| 120 | { |
| 121 | char buf[256]; |
| 122 | if (acl_parse_hostaddr(addr, buf, sizeof(buf), NULL)) { |
| 123 | out = buf; |
| 124 | return out.c_str(); |
| 125 | } |
| 126 | return ""; |
| 127 | } |
| 128 | |
| 129 | aio_handle& aio_stream::get_handle() const |
| 130 | { |
no test coverage detected