Jump to content

Networking

Networking in Leadwerks Engine is based on the enet library. The fast UDP protocol is used as a base, but packets are correctly ordered or sent with a "reliable" flag for important data. Although the UDP protocol is "connectionless", the Leadwerks networking library automatically initializes and maintains network "connections".

Commands

BroadcastPacket
ConnectHost
CreateHost
CreatePacket
DisconnectHost
Eof
FreeHost
FreePacket
GetHostIP
GetHostPort
GetPeerIP
GetPeerPort
PublishHost
ReadByte
ReadFloat
ReadInt
ReadLine
ReadShort
RequestServers
SendPacket
WaitNetwork
WriteByte
WriteFloat
WriteInt
WriteLine
WriteShort
  • You cannot add records