LumiSoft Net Help
SendPacket Method (packet, offset, count, remoteEP, localEP)
Namespaces ► LumiSoft.Net.UDP ► UDP_Server ► SendPacket(array<Byte>[]()[][], Int32, Int32, IPEndPoint, IPEndPoint%)
Sends specified UDP packet to the specified remote end point.
Declaration Syntax

C# | Visual Basic | Visual 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

Exception | Condition
--- | ---
ObjectDisposedException | Is raised when this object is disposed and this method is accessed.
InvalidOperationException | Is raised whan UDP server is not running and this method is accessed.
ArgumentNullException | Is raised when any of the arumnets is null.
ArgumentException | Is raised when any of the arguments has invalid value.

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