Lidgren Network Library documentation |
NetPeer..::..SendMessage Method (NetOutgoingMessage, List<(Of <(<'NetConnection>)>)>, NetDeliveryMethod, Int32) |
NetPeer Class See Also Send Feedback |
Send a message to a list of connections
Namespace: Lidgren.Network
Assembly: Lidgren.Network (in Lidgren.Network.dll) Version: 2012.1.7.0 (2012.1.7.0)
Syntax
C# |
---|
public void SendMessage( NetOutgoingMessage msg, List<NetConnection> recipients, NetDeliveryMethod method, int sequenceChannel ) |
Visual Basic |
---|
Public Sub SendMessage ( _ msg As NetOutgoingMessage, _ recipients As List(Of NetConnection), _ method As NetDeliveryMethod, _ sequenceChannel As Integer _ ) |
Visual C++ |
---|
public: void SendMessage( NetOutgoingMessage^ msg, List<NetConnection^>^ recipients, NetDeliveryMethod method, int sequenceChannel ) |
Parameters
- msg
- Type: Lidgren.Network..::..NetOutgoingMessage
The message to send
- recipients
- Type: System.Collections.Generic..::..List<(Of <(<'NetConnection>)>)>
The list of recipients to send to
- method
- Type: Lidgren.Network..::..NetDeliveryMethod
How to deliver the message
- sequenceChannel
- Type: System..::..Int32
Sequence channel within the delivery method