Class UDPSocketMock
Inheritance
UDPSocketMock
Syntax
public class UDPSocketMock : IDisposable
Constructors
UDPSocketMock(String, UInt16)
Declaration
public UDPSocketMock(string address, ushort port)
Parameters
Methods
Close()
Declaration
Dispose()
Declaration
Implements
ExpectPacket(Byte[], Action<EndPoint, Byte[]>, PacketParameter[], Boolean)
Declaration
public void ExpectPacket(byte[] packet, Action<EndPoint, byte[]> callback, PacketParameter[] parameters = null, bool optional = false)
Parameters
Send(Byte[], EndPoint)
Declaration
public void Send(byte[] packet, EndPoint endpoint)
Parameters
Type |
Name |
Description |
Byte[] |
packet |
|
EndPoint |
endpoint |
|
Send(Byte[], Int32, EndPoint)
Declaration
public void Send(byte[] packet, int length, EndPoint endpoint)
Parameters
Type |
Name |
Description |
Byte[] |
packet |
|
Int32 |
length |
|
EndPoint |
endpoint |
|