SendMessage Method (NetOutgoingMessage, NetConnection, NetDeliveryMethod, Int32)

Lidgren.Network

Collapse imageExpand ImageCopy imageCopyHover image
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,
	int sequenceChannel
)
Visual Basic
Public Function SendMessage ( _
	msg As NetOutgoingMessage, _
	recipient As NetConnection, _
	method As NetDeliveryMethod, _
	sequenceChannel As Integer _
) As NetSendResult
Visual C++
public:
NetSendResult SendMessage(
	NetOutgoingMessage^ msg, 
	NetConnection^ recipient, 
	NetDeliveryMethod method, 
	int sequenceChannel
)

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
sequenceChannel
Type: System..::..Int32
Sequence channel within the delivery method

Return Value

[Missing <returns> documentation for "M:Lidgren.Network.NetPeer.SendMessage(Lidgren.Network.NetOutgoingMessage,Lidgren.Network.NetConnection,Lidgren.Network.NetDeliveryMethod,System.Int32)"]

See Also