Skip to main content

SocketAddress Class

NuGet: GHIElectronics.TinyCLR.Networking
Assembly: GHIElectronics.TinyCLR.Networking
Namespace: System.Net

Stores serialized information from an endpoint.

public class SocketAddress

Constructors

SocketAddress(AddressFamily family, int size)

public SocketAddress(AddressFamily family, int size)

Initializes a new instance for the given address family and buffer size.

Properties

Family

public AddressFamily Family { get; }

The address family of the socket address.

Size

public int Size { get; }

The size, in bytes, of the underlying buffer.

offset]

public byte this[int offset] { get; set; }

Gets or sets the byte at the specified offset in the buffer.

Methods

Equals(object comparand)

public override bool Equals(object comparand)

Determines whether the specified object is equal to this socket address.

Returns bool

GetHashCode()

public override int GetHashCode()

Returns a hash code for this socket address.

Returns int

ToString()

public override string ToString()

Returns a string representation of the socket address.

Returns string