SharpPcap : SharpPcap.LibPcap Namespace

Sockaddr Class

Container class that represents either an ip address or a mac address An analog to the 'sockaddr_' series of structures

Syntax

public class Sockaddr

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: SharpPcap.LibPcap
Assembly: SharpPcap (in SharpPcap.dll)
Assembly Versions: 4.0.1.0

Members

See Also: Inherited members from object.

Public Constructors

Create a Sockaddr from a PhysicalAddress which is presumed to be a hardware address

Public Fields

hardwareAddress System.Net.NetworkInformation.PhysicalAddress . If type == HARDWARE
ipAddress System.Net.IPAddress . If type == AF_INET_AF_INET6
type Sockaddr.AddressTypes . Address type represented by this Sockaddr

Public Properties

[read-only]
sa_family int . Address family

Public Methods

override
ToString () : string
ToString override

Member Details

Sockaddr Constructor

Create a Sockaddr from a PhysicalAddress which is presumed to be a hardware address

Syntax

public Sockaddr (System.Net.NetworkInformation.PhysicalAddress hardwareAddress)

Parameters

hardwareAddress
A System.Net.NetworkInformation.PhysicalAddress

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: SharpPcap.LibPcap
Assembly: SharpPcap (in SharpPcap.dll)
Assembly Versions: 4.0.1.0

hardwareAddress Field

If type == HARDWARE

Syntax

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: SharpPcap.LibPcap
Assembly: SharpPcap (in SharpPcap.dll)
Assembly Versions: 4.0.1.0

ipAddress Field

If type == AF_INET_AF_INET6

Syntax

public System.Net.IPAddress ipAddress

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: SharpPcap.LibPcap
Assembly: SharpPcap (in SharpPcap.dll)
Assembly Versions: 4.0.1.0

sa_family Property

Address family

Syntax

public int sa_family { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: SharpPcap.LibPcap
Assembly: SharpPcap (in SharpPcap.dll)
Assembly Versions: 4.0.1.0

ToString Method

ToString override

Syntax

public override string ToString ()

Returns

A string

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: SharpPcap.LibPcap
Assembly: SharpPcap (in SharpPcap.dll)
Assembly Versions: 4.0.1.0

type Field

Address type represented by this Sockaddr

Syntax

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: SharpPcap.LibPcap
Assembly: SharpPcap (in SharpPcap.dll)
Assembly Versions: 4.0.1.0