errBuf is not populated by libpcap on failure — the underlying
API provides no error string on reject. The connectingHost output parameter is only valid when the return value is not -1.
Parameters
address | The local address to bind to. |
port | The port to listen on. |
hostlist | Allowed host list. |
connectingHost | Receives the hostname of the connecting client on success. |
auth | Authentication information. |
usesUdp | Whether to use UDP for the data connection. |
errBuf | Receives an error description on failure. |
Returns
A non-negative file descriptor on success, or
-1 on error.