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.UDPAssembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
Parameters
- packetToSend
- Type: NetworkCommsDotNet IPacket
The packet to send
- ipEndPoint
- Type: System.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