Method | Description | |
---|---|---|
AllocateViewID ( ) : |
Query for the next available network view ID number and allocate it (reserve).
|
|
CloseConnection ( |
Close the connection to another system.
|
|
Connect ( |
Connect to the host represented by a HostData structure returned by the Master Server.
|
|
Connect ( string GUID, [ password ) : NetworkConnectionError |
Connect to a server GUID. NAT punchthrough can only be performed this way.
|
|
Connect ( string IP, int remotePort, [ password ) : NetworkConnectionError |
Connect to the specified host (ip or domain name) and server port.
|
|
Destroy ( |
Destroy the object across the network.
|
|
Destroy ( |
Destroy the object associated with this view ID across the network.
|
|
DestroyPlayerObjects ( |
Destroy all the objects based on view IDs belonging to this player.
|
|
GetAveragePing ( |
The last average ping time to the given player in milliseconds.
|
|
GetLastPing ( |
The last ping time to the given player in milliseconds.
|
|
RemoveRPCs ( |
Remove all RPC functions which belong to this player ID.
|
|
RemoveRPCs ( |
Remove all RPC functions which belong to this player ID and were sent based on the given group.
|
|
RemoveRPCs ( |
Remove the RPC function calls accociated with this view ID number.
|
|
RemoveRPCsInGroup ( int group ) : void |
Remove all RPC functions which belong to given group number.
|
|
SetReceivingEnabled ( |
Enable or disables the reception of messages in a specific group number from a specific player.
|
|
SetSendingEnabled ( |
Enable or disable transmission of messages and RPC calls based on target network player as well as the network group.
|
|
SetSendingEnabled ( int group, bool enabled ) : void |
Enables or disables transmission of messages and RPC calls on a specific network group number.
|
Method | Description | |
---|---|---|
Connect ( |
||
Connect ( string GUID ) : NetworkConnectionError | ||
Connect ( string IP, int remotePort ) : NetworkConnectionError | ||
Disconnect ( ) : void | ||
Disconnect ( [ timeout ) : void | ||
HavePublicAddress ( ) : bool | ||
INTERNAL_CALL_CloseConnection ( |
||
INTERNAL_CALL_Destroy ( |
||
INTERNAL_CALL_DestroyPlayerObjects ( |
||
INTERNAL_CALL_GetAveragePing ( |
||
INTERNAL_CALL_GetLastPing ( |
||
INTERNAL_CALL_Instantiate ( UnityEngine prefab, Vector3 &position, |
||
INTERNAL_CALL_Internal_RemoveRPCs ( |
||
INTERNAL_CALL_Internal_SetSendingSpecific ( |
||
INTERNAL_CALL_SetReceivingEnabled ( |
||
InitializeSecurity ( ) : void | ||
InitializeServer ( int connections, int listenPort ) : NetworkConnectionError | ||
InitializeServer ( int connections, int listenPort, bool useNat ) : NetworkConnectionError | ||
Instantiate ( UnityEngine prefab, Vector3 position, |
||
Internal_AllocateViewID ( |
||
Internal_ConnectToGuid ( string guid, string password ) : NetworkConnectionError | ||
Internal_ConnectToIPs ( string IP, int remotePort, int localPort ) : NetworkConnectionError | ||
Internal_ConnectToIPs ( string IP, int remotePort, int localPort, [ password ) : NetworkConnectionError | ||
Internal_ConnectToSingleIP ( string IP, int remotePort, int localPort ) : NetworkConnectionError | ||
Internal_ConnectToSingleIP ( string IP, int remotePort, int localPort, [ password ) : NetworkConnectionError | ||
Internal_GetPlayer ( ) : int | ||
Internal_GetTime ( double &t ) : void | ||
Internal_InitializeServerDeprecated ( int connections, int listenPort ) : NetworkConnectionError | ||
Internal_RemoveRPCs ( |
||
Internal_SetSendingGlobal ( int group, bool enabled ) : void | ||
Internal_SetSendingSpecific ( |
||
SetLevelPrefix ( int prefix ) : void | ||
TestConnection ( ) : ConnectionTesterStatus | ||
TestConnection ( [ forceTest ) : ConnectionTesterStatus | ||
TestConnectionNAT ( ) : ConnectionTesterStatus | ||
TestConnectionNAT ( [ forceTest ) : ConnectionTesterStatus |
public static AllocateViewID ( ) : |
||
return |
public static CloseConnection ( |
||
target | ||
sendDisconnectionNotification | bool | |
return | void |
public static Connect ( |
||
hostData | ||
password | [ | |
return | NetworkConnectionError |
public static Connect ( string GUID, [ password ) : NetworkConnectionError | ||
GUID | string | |
password | [ | |
return | NetworkConnectionError |
public static Connect ( string IP, int remotePort, [ password ) : NetworkConnectionError | ||
IP | string | |
remotePort | int | |
password | [ | |
return | NetworkConnectionError |
public static Destroy ( |
||
gameObject | ||
return | void |
public static Destroy ( |
||
viewID | ||
return | void |
public static DestroyPlayerObjects ( |
||
playerID | ||
return | void |
public static GetAveragePing ( |
||
player | ||
return | int |
public static GetLastPing ( |
||
player | ||
return | int |
public static RemoveRPCs ( |
||
playerID | ||
return | void |
public static RemoveRPCs ( |
||
playerID | ||
group | int | |
return | void |
public static RemoveRPCs ( |
||
viewID | ||
return | void |
public static RemoveRPCsInGroup ( int group ) : void | ||
group | int | |
return | void |
public static SetReceivingEnabled ( |
||
player | ||
group | int | |
enabled | bool | |
return | void |
public static SetSendingEnabled ( |
||
player | ||
group | int | |
enabled | bool | |
return | void |
public static SetSendingEnabled ( int group, bool enabled ) : void | ||
group | int | |
enabled | bool | |
return | void |