LiteNetManagerConnect(IPEndPoint, ReadOnlySpanByte) Method |
Connect to remote host
Namespace: LiteNetLibAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic LiteNetPeer Connect(
IPEndPoint target,
ReadOnlySpan<byte> connectionData
)
Parameters
- target IPEndPoint
- Server end point (ip and port)
- connectionData ReadOnlySpanByte
- Additional data for remote peer
Return Value
LiteNetPeerNew NetPeer if new connection, Old NetPeer if already connected, null peer if there is ConnectionRequest awaiting
Exceptions
See Also