LumiSoft Net Help
SendPacket Method (packet, offset, count, remoteEP, localEP)
NamespacesLumiSoft.Net.UDPUDP_ServerSendPacket(array<Byte>[]()[][], Int32, Int32, IPEndPoint, IPEndPoint%)
Sends specified UDP packet to the specified remote end point.
Declaration Syntax
C#Visual BasicVisual C++F#
public void SendPacket(
	byte[] packet,
	int offset,
	int count,
	IPEndPoint remoteEP,
	out IPEndPoint localEP
)
Public Sub SendPacket ( 
	packet As Byte(),
	offset As Integer,
	count As Integer,
	remoteEP As IPEndPoint,
	<OutAttribute> ByRef localEP As IPEndPoint
)
public:
void SendPacket(
	array<unsigned char>^ packet, 
	int offset, 
	int count, 
	IPEndPoint^ remoteEP, 
	[OutAttribute] IPEndPoint^% localEP
)
member SendPacket : 
        packet : byte[] * 
        offset : int * 
        count : int * 
        remoteEP : IPEndPoint * 
        localEP : IPEndPoint byref -> unit 
Parameters
packet (array<Byte>[]()[][])
UDP packet to send.
offset (Int32)
Offset in the buffer.
count (Int32)
Number of bytes to send.
remoteEP (IPEndPoint)
Remote end point.
localEP (IPEndPoint%)
Returns local IP end point which was used to send UDP packet.
Exceptions
ExceptionCondition
ObjectDisposedExceptionIs raised when this object is disposed and this method is accessed.
InvalidOperationExceptionIs raised whan UDP server is not running and this method is accessed.
ArgumentNullExceptionIs raised when any of the arumnets is null.
ArgumentExceptionIs raised when any of the arguments has invalid value.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119