C# Class Plugin.NetworkManager

Manages all network stuff
Afficher le fichier Open project: Silveryard/SmartHome

Méthodes publiques

Méthode Description
Close ( ) : void

Closes the networkmanager

GetNetworkFunction ( string name ) : FunctionInfo

Returns the corresponding network function to the custom name

Init ( ) : void

Initializes the manager

RegisterNetworkFunction ( FunctionInfo info ) : void

Registers a networkfunction so it can get called

UnregisterNetworkFunction ( string name ) : void

Unregisteres a networkfunction so it cant get called anymore

Private Methods

Méthode Description
HandleMessage ( ServerInstance arg1, string message ) : void
IndexesOf ( this haystack, string needle ) : IEnumerable
PluginManager_PluginUnload ( Plugin plugin ) : void
Server_CliendDisconnected ( ServerInstance obj ) : void
Server_ClientConnected ( ServerInstance obj ) : void
Server_MessageReceived ( ServerInstance arg1, byte arg2 ) : void

Method Details

Close() public static méthode

Closes the networkmanager
public static Close ( ) : void
Résultat void

GetNetworkFunction() public static méthode

Returns the corresponding network function to the custom name
public static GetNetworkFunction ( string name ) : FunctionInfo
name string The network functions name
Résultat FunctionInfo

Init() public static méthode

Initializes the manager
public static Init ( ) : void
Résultat void

RegisterNetworkFunction() public static méthode

Registers a networkfunction so it can get called
public static RegisterNetworkFunction ( FunctionInfo info ) : void
info FunctionInfo The functions info
Résultat void

UnregisterNetworkFunction() public static méthode

Unregisteres a networkfunction so it cant get called anymore
public static UnregisterNetworkFunction ( string name ) : void
name string The functions info
Résultat void