Skip to main content

Class UdpSocket

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

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()

Is message avaliable

Declaration
public bool Poll()
Returns
TypeDescription
System.Booleantrue if data to read

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