loadApi

fnbool loadApi(string libName = null)

Loads the libpcap library and resolves symbols.

If loadApi was called before, the previous library handle is released before loading the new one.

Parameters

libNameThe name or path of the libpcap shared library (e.g. "libpcap.so"). If null, attempts to resolve symbols from the currently loaded process.

Returns

true if at least the core symbols were successfully loaded.