diff options
author | Determinant <[email protected]> | 2018-07-18 20:13:50 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-07-18 20:13:50 -0400 |
commit | a75778995a4e0742f244670e9cc02a56611ccfe0 (patch) | |
tree | 7c4bda5e75cd957ab94b099872adeee3e4c724bc /src | |
parent | 12bf781e762705f2bbabe5102148ac699e20ef12 (diff) |
improve network interface
Diffstat (limited to 'src')
-rw-r--r-- | src/conn.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn.cpp b/src/conn.cpp index 62cba8a..052f2ad 100644 --- a/src/conn.cpp +++ b/src/conn.cpp @@ -180,7 +180,7 @@ void ConnPool::Conn::conn_server(evutil_socket_t fd, short events) { } } -void ConnPool::init(NetAddr listen_addr) { +void ConnPool::listen(NetAddr listen_addr) { int one = 1; if ((listen_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) throw ConnPoolError(std::string("cannot create socket for listening")); |