Namespace Unity.Networking.Transport
Classes
NativeBindings
NetworkInterfaceException
NetworkPipelineInitilizeAttribute
Structs
DataStreamReader
The DataStreamReader
class is the counterpart of the
DataStreamWriter
class and can be be used to deserialize
data which was prepared with it.
DataStreamReader.Context
The context is the current index to the data buffer used by the reader. This can be used when the reader is used with the job system but normally the same context is passed in for each read invocation so the correct read index is used:
var dataReader = new DataStreamReader(someDataWriter, 0, someDataWriter.Length);
var ctx = default(DataStreamReader.Context);
var someInt = dataReader.ReadInt(ref ctx);
var someOtherInt = dataReader.ReadInt(ref ctx);
DataStreamWriter
Data streams can be used to serialize data over the network. The
DataStreamWriter
and DataStreamReader
classes work together
to serialize data for sending and then to deserialize when receiving.
DataStreamWriter.DeferredByte
DataStreamWriter.DeferredFloat
DataStreamWriter.DeferredInt
DataStreamWriter.DeferredIntNetworkByteOrder
DataStreamWriter.DeferredShort
DataStreamWriter.DeferredShortNetworkByteOrder
DataStreamWriter.DeferredUInt
DataStreamWriter.DeferredUIntNetworkByteOrder
DataStreamWriter.DeferredUShort
DataStreamWriter.DeferredUShortNetworkByteOrder
DefaultPipelineStageCollection
GenericNetworkDriver<T, TNetworkPipelineStageCollection>
The GenericNetworkDriver is an implementation of Virtual Connections over any transport.
Basic usage:
var driver = new GenericNetworkDriver<IPv4UDPSocket>(new INetworkParameter[0]);
GenericNetworkDriver<T, TNetworkPipelineStageCollection>.Concurrent
The Concurrent struct is used to create an Concurrent instance of the GenericNetworkDriver.
InboundBufferVec
IPCManager
IPCSocket
IPv4UDPSocket
LocalNetworkDriver
LocalNetworkDriver.Concurrent
network_iovec
NetworkCompressionModel
NetworkConfigParameter
The NetworkConfigParameter is used to set specific parameters that the driver uses.
NetworkConnection
The NetworkConnection is a struct that hold all information needed by the driver to link it with a virtual connection. The NetworkConnection is a public representation of a connection.
NetworkDataStreamParameter
The NetworkDataStreamParameter is used to set the initial data stream size.
NetworkEndPoint
The NetworkEndPoint is our representation of the
NetworkEvent
NetworkEventQueue
NetworkEventQueue.Concurrent
NetworkLogger
NetworkLogger.Concurrent
NetworkParameterConstants
Default NetworkParameter Constants.
NetworkPipeline
NetworkPipelineContext
NetworkPipelineParams
NullPipelineStage
NullPipelineStageCollection
ReliableSequencedPipelineStage
SimulatorPipelineStage
SimulatorPipelineStageInSend
UdpNetworkDriver
UdpNetworkDriver.Concurrent
UnreliableSequencedPipelineStage
Interfaces
INetworkDriver
The NetworkDriver interface is the main entry point for the transport. The Driver is similar to a UDP socket which can handle many connections.
INetworkInterface
INetworkLogMessage
INetworkPacketReceiver
The INetworkPacketReceiver is an interface for handling received packets, needed by the INetworkInterface
INetworkParameter
The interface for NetworkParameters
INetworkPipelineReceiver
INetworkPipelineSender
INetworkPipelineStage
INetworkPipelineStageCollection
Enums
NetworkConnection.State
ConnectionState enumerates available connection states a connection can have.
NetworkEvent.Type
NetworkEvent.Type enumerates available network events for this driver.
NetworkFamily
NetworkFamily indicates what type of underlying medium we are using. Currently supported are UdpIpv4 and IPC