115 |
|
|
116 |
|
|
117 |
/** |
/** |
118 |
* Creates a blocking server socket (SOCK_STREAM type) and bind it to |
* Create a blocking server socket and bind it to the specified local |
119 |
* the specified local port number, with the specified backlog. Set a |
* port number, with the specified backlog. Set a socket option to |
120 |
* socket option to make the port reusable again. If a bind address is |
* make the port reusable again. If a bind address is given the socket |
121 |
* given the socket will only accept connect requests to this |
* will only accept connect requests to this addresses. If the bind |
122 |
* addresses. If the bind address is NULL it will accept connections |
* address is NULL it will accept connections on any/all local |
123 |
* on any/all local addresses |
* addresses |
124 |
* @param port The localhost port number to open |
* @param port The localhost port number to open |
125 |
* @param backlog The maximum queue length for incomming connections |
* @param backlog The maximum queue length for incomming connections |
126 |
* @param bindAddr the local address the server will bind to |
* @param bindAddr the local address the server will bind to |