Click or drag to resize

LiteNetManagerSendUnconnectedMessage(NetDataWriter, String, Int32) Method

Send message without connection. WARNING This method allocates a new IPEndPoint object and synchronously makes a DNS request. If you're calling this method every frame it will be much faster to just cache the IPEndPoint.

Namespace: LiteNetLib
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public bool SendUnconnectedMessage(
	NetDataWriter writer,
	string address,
	int port
)

Parameters

writer  NetDataWriter
Data serializer
address  String
Packet destination IP or hostname
port  Int32
Packet destination port

Return Value

Boolean
Operation result
See Also