Class NanoSocket
Inheritance
System.Object
Inherited Members
Show
Syntax
public sealed class NanoSocket : ISocket
Constructors
NanoSocket(UdpSocketFactory)
Declaration
public NanoSocket(UdpSocketFactory factory)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Sockets.Udp.UdpSocketFactory | factory |
Properties
Supported
Declaration
public static bool Supported { get; }
Methods
Bind(IEndPoint)
Declaration
public void Bind(IEndPoint endPoint)
Parameters
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.IEndPoint | endPoint |
Connect(IEndPoint)
Declaration
public void Connect(IEndPoint endPoint)
Parameters
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.IEndPoint | endPoint |
Close()
Declaration
public void Close()
Poll()
Declaration
public bool Poll()
Returns
Type | Description |
---|---|
System.Boolean |
Receive(Byte[], out IEndPoint)
Declaration
public int Receive(byte[] buffer, out IEndPoint endPoint)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
Mirage.SocketLayer.IEndPoint | endPoint |
Returns
Type | Description |
---|---|
System.Int32 |
Send(IEndPoint, Byte[], Int32)
Declaration
public void Send(IEndPoint endPoint, byte[] packet, int length)
Parameters
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.IEndPoint | endPoint | |
System.Byte[] | packet | |
System.Int32 | length |