createSrcStr

fnstring createSrcStr(SourceType type, string host, string port, string name, out string errBuf)

Creates a source string for use with pcap_open.

Parameters

typeThe source type.
hostThe host name.
portThe port number.
nameThe device name.
errBufBuffer to receive error information if the operation fails.

Returns

The created source string, or null on error.