summaryrefslogtreecommitdiff
path: root/src/SocketCore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/SocketCore.h')
-rw-r--r--src/SocketCore.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/SocketCore.h b/src/SocketCore.h
index 7de5a0eb..3ea31b87 100644
--- a/src/SocketCore.h
+++ b/src/SocketCore.h
@@ -137,8 +137,6 @@ public:
void bindWithFamily(uint16_t port, int family, int flags = AI_PASSIVE);
- void bind(const std::string& addr, uint16_t port, int flags = AI_PASSIVE);
-
/**
* Creates a socket and bind it with locahost's address and port.
* flags is set to struct addrinfo's ai_flags.
@@ -147,6 +145,9 @@ public:
*/
void bind(uint16_t port, int flags = AI_PASSIVE);
+ void bind
+ (const std::string& addr, uint16_t port, int family, int flags = AI_PASSIVE);
+
/**
* Listens form connection on it.
* Call bind(uint16_t) before calling this function.