UDPConnection SendObject packetPayloadObjectType  Method (IPacket, IPEndPoint, SendReceiveOptions, ApplicationLayerProtocolStatus)NetworkComms.Net Help
Sends a Packet to the provided endPoint. Offers more performance if an identical packet is being sent to multiple peers. NOTE: Any possible reply will be ignored unless listening for incoming UDP packets.

Namespace: NetworkCommsDotNet.Connections.UDP
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public static void SendObject<packetPayloadObjectType>(
	IPacket packetToSend,
	IPEndPoint ipEndPoint,
	SendReceiveOptions sendReceiveOptions,
	ApplicationLayerProtocolStatus applicationLayerProtocol
)

Parameters

packetToSend
Type: NetworkCommsDotNet IPacket
The packet to send
ipEndPoint
Type: OnlineSystem.Net IPEndPoint
The destination IPEndPoint. Supports multicast endpoints.
sendReceiveOptions
Type: NetworkCommsDotNet SendReceiveOptions
The sendReceiveOptions to use for this send
applicationLayerProtocol
Type: NetworkCommsDotNet.Connections ApplicationLayerProtocolStatus
If enabled NetworkComms.Net uses a custom application layer protocol to provide useful features such as inline serialisation, transparent packet transmission, remote peer handshake and information etc. We strongly recommend you use the NetworkComms.Net application layer protocol.
Type Parameters

packetPayloadObjectType
The type of object encapsulated by the provided packet
See Also