remoteactAcceptEx

fnint remoteactAcceptEx(string address, string port, string hostlist, out string connectingHost, pcap_rmtauth * auth, int usesUdp, out string errBuf)

Accepts an RPCAP connection (extended).

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.
usesUdpWhether to use UDP for the data connection.
errBufReceives an error description on failure.

Returns

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