Class ManagedSocket
A socket.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class ManagedSocket
Properties
AdapterSpeed
Gets or sets the adapter speed.
Declaration
public long AdapterSpeed { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
IPv6
Gets a value indicating whether the socket supports IPv6.
Declaration
public abstract bool IPv6 { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsClosed
Gets a value indicating whether this instance is closed.
Declaration
public abstract bool IsClosed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LocalIPAddress
Gets the local IP address.
Declaration
public abstract string LocalIPAddress { get; }
Property Value
Type | Description |
---|---|
System.String |
LocalPort
Gets the local port.
Declaration
public abstract int LocalPort { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PublicIPAddresses
Gets or sets the public IP addresses, if known.
Declaration
public string[] PublicIPAddresses { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
Methods
Bind(String, Int32, out Boolean)
Binds the socket to a local endpoint.
Declaration
public abstract bool Bind(string ipAddress, int port, out bool addressInUse)
Parameters
Type | Name | Description |
---|---|---|
System.String | ipAddress | The local IP address. |
System.Int32 | port | The local port. |
System.Boolean | addressInUse | Indicates that access to the address is forbidden or in use. |
Returns
Type | Description |
---|---|
System.Boolean |
Close()
Closes the socket.
Declaration
public abstract void Close()