diff options
Diffstat (limited to 'src/SocketCore.h')
| -rw-r--r-- | src/SocketCore.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SocketCore.h b/src/SocketCore.h index 4cdaa473..896c1f63 100644 --- a/src/SocketCore.h +++ b/src/SocketCore.h @@ -145,10 +145,11 @@ public: /** * Creates a socket and bind it with locahost's address and port. + * flags is set to struct addrinfo's ai_flags. * @param port port to listen. If 0 is specified, os automaticaly * choose avaiable port. */ - void bind(uint16_t port); + void bind(uint16_t port, int flags = AI_PASSIVE); /** * Listens form connection on it. |
