Table of Contents

Class OutOfProcessCaptureContext

Namespace
Fluxzy.Core.Pcap
Assembly
Fluxzy.Core.Pcap.dll
public class OutOfProcessCaptureContext : ICaptureContext, IAsyncDisposable, IDisposable
Inheritance
OutOfProcessCaptureContext
Implements
Inherited Members

Constructors

OutOfProcessCaptureContext(IOutOfProcessHost)

public OutOfProcessCaptureContext(IOutOfProcessHost captureHost)

Parameters

captureHost IOutOfProcessHost

Properties

Available

True if available

public bool Available { get; }

Property Value

bool

Methods

ClearAll()

clear all

public void ClearAll()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public ValueTask DisposeAsync()

Returns

ValueTask

A task that represents the asynchronous dispose operation.

Flush()

Flush any in memory data to disk

public void Flush()

Include(IPAddress, int)

Include a specific socket

public void Include(IPAddress remoteAddress, int remotePort)

Parameters

remoteAddress IPAddress
remotePort int

Start()

Start the capture engine

public Task Start()

Returns

Task

StoreKey(string, IPAddress, int, int)

Add NSS key to a specific socket

public void StoreKey(string nssKey, IPAddress remoteAddress, int remotePort, int localPort)

Parameters

nssKey string
remoteAddress IPAddress
remotePort int
localPort int

Subscribe(string, IPAddress, int, int)

Write to a file the content of a specific socket

public long Subscribe(string outFileName, IPAddress remoteAddress, int remotePort, int localPort)

Parameters

outFileName string
remoteAddress IPAddress
remotePort int
localPort int

Returns

long

Returns a subscription id

Unsubscribe(long)

Unsubscribe a specific socket

public ValueTask Unsubscribe(long subscription)

Parameters

subscription long

Returns

ValueTask