aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-07-18 20:13:50 -0400
committerDeterminant <[email protected]>2018-07-18 20:13:50 -0400
commita75778995a4e0742f244670e9cc02a56611ccfe0 (patch)
tree7c4bda5e75cd957ab94b099872adeee3e4c724bc /src
parent12bf781e762705f2bbabe5102148ac699e20ef12 (diff)
improve network interface
Diffstat (limited to 'src')
-rw-r--r--src/conn.cpp2
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"));