Skip to main content

Class NanoSocket

Inheritance
System.Object
Inherited Members
Show
Syntax
public sealed class NanoSocket : ISocket

Constructors

NanoSocket(UdpSocketFactory)

Declaration
public NanoSocket(UdpSocketFactory factory)
Parameters
TypeNameDescription
Mirage.Sockets.Udp.UdpSocketFactoryfactory

Properties

Supported

Declaration
public static bool Supported { get; }

Methods

Bind(IEndPoint)

Declaration
public void Bind(IEndPoint endPoint)
Parameters
TypeNameDescription
Mirage.SocketLayer.IEndPointendPoint

Connect(IEndPoint)

Declaration
public void Connect(IEndPoint endPoint)
Parameters
TypeNameDescription
Mirage.SocketLayer.IEndPointendPoint

Close()

Declaration
public void Close()

Poll()

Declaration
public bool Poll()
Returns
TypeDescription
System.Boolean

Receive(Byte[], out IEndPoint)

Declaration
public int Receive(byte[] buffer, out IEndPoint endPoint)
Parameters
TypeNameDescription
System.Byte[]buffer
Mirage.SocketLayer.IEndPointendPoint
Returns
TypeDescription
System.Int32

Send(IEndPoint, Byte[], Int32)

Declaration
public void Send(IEndPoint endPoint, byte[] packet, int length)
Parameters
TypeNameDescription
Mirage.SocketLayer.IEndPointendPoint
System.Byte[]packet
System.Int32length