remoteactAccept

fnint remoteactAccept(string address, string port, string hostlist, out string connectingHost, pcap_rmtauth * auth, out string errBuf)

Accepts an RPCAP connection.

Note

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

addressThe local address to bind to.
portThe port to listen on.
hostlistAllowed host list.
connectingHostReceives the hostname of the connecting client on success.
authAuthentication information.
errBufReceives an error description on failure.

Returns

A non-negative file descriptor on success, or -1 on error.