Binding

Overview

Represents a local socket binding.

All active socket connections are "bound" to a specific port on the client and server side. These bindings are particularly important for some protocols (such as FTP) to identify the local connection. Server processes bind themselves to a specific port in order to service incoming queries.

Location


 

constructor

 

constructor

 

Binding()

 

Sub New()

constructor (AddressFamily)

 

constructor(addressFamily: AddressFamily)

 

Binding(AddressFamily addressFamily)

 

Sub New(addressFamily As AddressFamily)

Parameters:

  • addressFamily:

Address

The IP Address of the binding.

 

property Address: IPAddress read write;

 

IPAddress Address { get; set; }

 

Property Address() As IPAddress

AddressFamily

AddressFamily denotes the type of address (and thus the means to communicate) of the binding. The default value for "InterNetwork" is defined in System.Net.Sockets.AddressFamily

 

property AddressFamily: AddressFamily read write;

 

AddressFamily AddressFamily { get; set; }

 

Property AddressFamily() As AddressFamily

DefaultPort

 

property DefaultPort: Int32 read write;

 

Int32 DefaultPort { get; set; }

 

Property DefaultPort() As Int32

Port

Denotes the port number associated with the socket binding. On a server connection, this would be the obvious protocol numbers (e.g: HTTP=80, FTP=21), on the client this number is assigned by the operating system when creating the socket.

 

property Port: Int32 read write;

 

Int32 Port { get; set; }

 

Property Port() As Int32

Protocol

Denotes the transport level protocol to use to communicate over the socket. The default value "TCP" is defined in System.Net.Sockets.ProtocolType

 

property Protocol: ProtocolType read write;

 

ProtocolType Protocol { get; set; }

 

Property Protocol() As ProtocolType

ShouldSerializePort

 

method ShouldSerializePort: Boolean

 

Boolean ShouldSerializePort()

 

Function ShouldSerializePort() As Boolean

SocketType

Denotes the type of socket used to use to communicate. Defined in System.Net.Sockets.SocketType

 

property SocketType: SocketType read write;

 

SocketType SocketType { get; set; }

 

Property SocketType() As SocketType

 

Address

The IP Address of the binding.

 

property Address: IPAddress read write;

 

IPAddress Address { get; set; }

 

Property Address() As IPAddress

AddressFamily

AddressFamily denotes the type of address (and thus the means to communicate) of the binding. The default value for "InterNetwork" is defined in System.Net.Sockets.AddressFamily

 

property AddressFamily: AddressFamily read write;

 

AddressFamily AddressFamily { get; set; }

 

Property AddressFamily() As AddressFamily

DefaultPort

 

property DefaultPort: Int32 read write;

 

Int32 DefaultPort { get; set; }

 

Property DefaultPort() As Int32

Port

Denotes the port number associated with the socket binding. On a server connection, this would be the obvious protocol numbers (e.g: HTTP=80, FTP=21), on the client this number is assigned by the operating system when creating the socket.

 

property Port: Int32 read write;

 

Int32 Port { get; set; }

 

Property Port() As Int32

Protocol

Denotes the transport level protocol to use to communicate over the socket. The default value "TCP" is defined in System.Net.Sockets.ProtocolType

 

property Protocol: ProtocolType read write;

 

ProtocolType Protocol { get; set; }

 

Property Protocol() As ProtocolType

SocketType

Denotes the type of socket used to use to communicate. Defined in System.Net.Sockets.SocketType

 

property SocketType: SocketType read write;

 

SocketType SocketType { get; set; }

 

Property SocketType() As SocketType

 

constructor

 

constructor

 

Binding()

 

Sub New()

constructor (AddressFamily)

 

constructor(addressFamily: AddressFamily)

 

Binding(AddressFamily addressFamily)

 

Sub New(addressFamily As AddressFamily)

Parameters:

  • addressFamily:

ShouldSerializePort

 

method ShouldSerializePort: Boolean

 

Boolean ShouldSerializePort()

 

Function ShouldSerializePort() As Boolean