class LightshipNetcodeTransport
(Niantic.Lightship.SharedAR.Netcode.LightshipNetcodeTransport)
Overview
Lightship's Netcode for GameObjects compatibility layer. Implemented using the Room and INetworking apis.
class LightshipNetcodeTransport: NetworkTransport {
public:
struct CachedEvent;
struct NetcodeSessionStats;
// properties
override ulong ServerClientId;
// methods
NetcodeSessionStats GetNetcodeSessionStats();
override void Send(
ulong clientId,
ArraySegment<byte> data,
NetworkDelivery delivery = NetworkDelivery.Reliable
);
override NetworkEvent PollEvent(
out ulong clientId,
out ArraySegment<byte> payload,
out float receiveTime
);
void SetRoom(IRoom room);
override bool StartClient();
override bool StartServer();
override void DisconnectRemoteClient(ulong clientId);
override void DisconnectLocalClient();
override ulong GetCurrentRtt(ulong clientId);
override void Shutdown();
override void Initialize(NetworkManager manager);
uint GetLastNetworkError();
};
Detailed Documentation
Lightship's Netcode for GameObjects compatibility layer. Implemented using the Room and INetworking apis.