Interface INetworkTransport
Syntax
[Obsolete("The high level API classes are deprecated and will be removed in the future.")]
public interface INetworkTransport
Properties
IsStarted
Declaration
Property Value
Methods
AddHost(HostTopology, Int32, String)
Declaration
int AddHost(HostTopology topology, int port, string ip)
Parameters
Returns
AddHostWithSimulator(HostTopology, Int32, Int32, Int32)
Declaration
int AddHostWithSimulator(HostTopology topology, int minTimeout, int maxTimeout, int port)
Parameters
Returns
AddWebsocketHost(HostTopology, Int32, String)
Declaration
int AddWebsocketHost(HostTopology topology, int port, string ip)
Parameters
Returns
Connect(Int32, String, Int32, Int32, out Byte)
Declaration
int Connect(int hostId, string address, int port, int specialConnectionId, out byte error)
Parameters
Returns
ConnectAsNetworkHost(Int32, String, Int32, NetworkID, SourceID, NodeID, out Byte)
Declaration
void ConnectAsNetworkHost(int hostId, string address, int port, NetworkID network, SourceID source, NodeID node, out byte error)
Parameters
ConnectEndPoint(Int32, EndPoint, Int32, out Byte)
Declaration
int ConnectEndPoint(int hostId, EndPoint endPoint, int specialConnectionId, out byte error)
Parameters
Type |
Name |
Description |
Int32 |
hostId |
|
EndPoint |
endPoint |
|
Int32 |
specialConnectionId |
|
Byte |
error |
|
Returns
ConnectToNetworkPeer(Int32, String, Int32, Int32, Int32, NetworkID, SourceID, NodeID, out Byte)
Declaration
int ConnectToNetworkPeer(int hostId, string address, int port, int specialConnectionId, int relaySlotId, NetworkID network, SourceID source, NodeID node, out byte error)
Parameters
Returns
ConnectWithSimulator(Int32, String, Int32, Int32, out Byte, ConnectionSimulatorConfig)
Declaration
int ConnectWithSimulator(int hostId, string address, int port, int specialConnectionId, out byte error, ConnectionSimulatorConfig conf)
Parameters
Returns
Disconnect(Int32, Int32, out Byte)
Declaration
bool Disconnect(int hostId, int connectionId, out byte error)
Parameters
Returns
Declaration
bool DoesEndPointUsePlatformProtocols(EndPoint endPoint)
Parameters
Type |
Name |
Description |
EndPoint |
endPoint |
|
Returns
GetBroadcastConnectionInfo(Int32, out String, out Int32, out Byte)
Declaration
void GetBroadcastConnectionInfo(int hostId, out string address, out int port, out byte error)
Parameters
GetBroadcastConnectionMessage(Int32, Byte[], Int32, out Int32, out Byte)
Declaration
void GetBroadcastConnectionMessage(int hostId, byte[] buffer, int bufferSize, out int receivedSize, out byte error)
Parameters
GetConnectionInfo(Int32, Int32, out String, out Int32, out NetworkID, out NodeID, out Byte)
Declaration
void GetConnectionInfo(int hostId, int connectionId, out string address, out int port, out NetworkID network, out NodeID dstNode, out byte error)
Parameters
GetCurrentRTT(Int32, Int32, out Byte)
Declaration
int GetCurrentRTT(int hostId, int connectionId, out byte error)
Parameters
Returns
Init()
Declaration
Init(GlobalConfig)
Declaration
void Init(GlobalConfig config)
Parameters
Receive(out Int32, out Int32, out Int32, Byte[], Int32, out Int32, out Byte)
Declaration
NetworkEventType Receive(out int hostId, out int connectionId, out int channelId, byte[] buffer, int bufferSize, out int receivedSize, out byte error)
Parameters
Returns
ReceiveFromHost(Int32, out Int32, out Int32, Byte[], Int32, out Int32, out Byte)
Declaration
NetworkEventType ReceiveFromHost(int hostId, out int connectionId, out int channelId, byte[] buffer, int bufferSize, out int receivedSize, out byte error)
Parameters
Returns
ReceiveRelayEventFromHost(Int32, out Byte)
Declaration
NetworkEventType ReceiveRelayEventFromHost(int hostId, out byte error)
Parameters
Type |
Name |
Description |
Int32 |
hostId |
|
Byte |
error |
|
Returns
RemoveHost(Int32)
Declaration
bool RemoveHost(int hostId)
Parameters
Type |
Name |
Description |
Int32 |
hostId |
|
Returns
Send(Int32, Int32, Int32, Byte[], Int32, out Byte)
Declaration
bool Send(int hostId, int connectionId, int channelId, byte[] buffer, int size, out byte error)
Parameters
Returns
SetBroadcastCredentials(Int32, Int32, Int32, Int32, out Byte)
Declaration
void SetBroadcastCredentials(int hostId, int key, int version, int subversion, out byte error)
Parameters
SetPacketStat(Int32, Int32, Int32, Int32)
Declaration
void SetPacketStat(int direction, int packetStatId, int numMsgs, int numBytes)
Parameters
Shutdown()
Declaration
StartBroadcastDiscovery(Int32, Int32, Int32, Int32, Int32, Byte[], Int32, Int32, out Byte)
Declaration
bool StartBroadcastDiscovery(int hostId, int broadcastPort, int key, int version, int subversion, byte[] buffer, int size, int timeout, out byte error)
Parameters
Returns
StopBroadcastDiscovery()
Declaration
void StopBroadcastDiscovery()