C# Class kOS.UserIO.TelnetMainServer

Inheritance: UnityEngine.MonoBehaviour
ファイルを表示 Open project: KSP-KOS/KOS Class Usage Examples

Public Methods

Method Description
SetConfigEnable ( bool newVal ) : void
StartListening ( ) : void
StopListening ( ) : void
TelnetMainServer ( ) : System
Update ( ) : void

Private Methods

Method Description
GetPermanentListenPermission ( ) : bool

Return the user's permanent ("don't remind me again") status for the permission to have telnet listen turned on. This is stored in the kOS settings file and presumed to have a value of false if the setting is missing entirely from the file (which it will be the first time the user runs a version of the mod with this code in it.)

GetPermanentRealIPPermission ( ) : bool

Return the user's permanent ("don't remind me again") status for the permission to have the telnet server listen to an address other than loopback. (false = please restrict to only loopback.) The permission will be stored in the kOS settings file and will be presumed to be set to false if the setting is missing from the file (as it will be the first time the user runs a version of the mod with this code in it.

GetRealAddress ( ) : IPAddress
OnDestroy ( ) : void

Kill listener and all spawned singleton servers when the game is quitting and making me go away. Without this the game can hang forever when attempting to do a hard-quit, because the threads of the child singleton servers are still running.

OnGUI ( ) : void
OptInOnGui ( int id ) : void
RealIPOnGui ( int id ) : void
SetPermanentListenPermission ( bool newValue ) : void

Change the permanent ("don't remind me again") status of the permission in the kOS settings file.

SetPermanentRealIPPermission ( bool newValue ) : void

Change the permanent ("don't remind me again") status of the permission in the kOS settings file.

SingletonStopped ( kOS.UserIO.TelnetSingletonServer telnet ) : void

Method Details

SetConfigEnable() public method

public SetConfigEnable ( bool newVal ) : void
newVal bool
return void

StartListening() public method

public StartListening ( ) : void
return void

StopListening() public method

public StopListening ( ) : void
return void

TelnetMainServer() public method

public TelnetMainServer ( ) : System
return System

Update() public method

public Update ( ) : void
return void