Class UdpSocket
Inheritance
System.Object
Inherited Members
Show
Syntax
public class UdpSocket : ISocket
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()
Is message avaliable
Declaration
public bool Poll()
Returns
Type | Description |
---|---|
System.Boolean | true if data to read |
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 |