C# Class kOS.UserIO.TelnetMainServer

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: KSP-KOS/KOS Class Usage Examples

Méthodes publiques

Méthode Description
SetConfigEnable ( bool newVal ) : void
StartListening ( ) : void
StopListening ( ) : void
TelnetMainServer ( ) : System
Update ( ) : void

Private Methods

Méthode 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 méthode

public SetConfigEnable ( bool newVal ) : void
newVal bool
Résultat void

StartListening() public méthode

public StartListening ( ) : void
Résultat void

StopListening() public méthode

public StopListening ( ) : void
Résultat void

TelnetMainServer() public méthode

public TelnetMainServer ( ) : System
Résultat System

Update() public méthode

public Update ( ) : void
Résultat void