Lidgren Network Library documentation |
NetPeer..::..SendMessage Method (NetOutgoingMessage, NetConnection, NetDeliveryMethod) |
NetPeer Class See Also Send Feedback |
Send a message to a specific connection
Namespace: Lidgren.Network
Assembly: Lidgren.Network (in Lidgren.Network.dll) Version: 2012.1.7.0 (2012.1.7.0)
Syntax
C# |
---|
public NetSendResult SendMessage( NetOutgoingMessage msg, NetConnection recipient, NetDeliveryMethod method ) |
Visual Basic |
---|
Public Function SendMessage ( _ msg As NetOutgoingMessage, _ recipient As NetConnection, _ method As NetDeliveryMethod _ ) As NetSendResult |
Visual C++ |
---|
public: NetSendResult SendMessage( NetOutgoingMessage^ msg, NetConnection^ recipient, NetDeliveryMethod method ) |
Parameters
- msg
- Type: Lidgren.Network..::..NetOutgoingMessage
The message to send
- recipient
- Type: Lidgren.Network..::..NetConnection
The recipient connection
- method
- Type: Lidgren.Network..::..NetDeliveryMethod
How to deliver the message
Return Value
[Missing <returns> documentation for "M:Lidgren.Network.NetPeer.SendMessage(Lidgren.Network.NetOutgoingMessage,Lidgren.Network.NetConnection,Lidgren.Network.NetDeliveryMethod)"]