C# Class Plugin.NetworkManager

Manages all network stuff
Show file Open project: Silveryard/SmartHome

Public Methods

Method 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

Method 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 method

Closes the networkmanager
public static Close ( ) : void
return void

GetNetworkFunction() public static method

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

Init() public static method

Initializes the manager
public static Init ( ) : void
return void

RegisterNetworkFunction() public static method

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

UnregisterNetworkFunction() public static method

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