C# Класс kOS.UserIO.TelnetMainServer

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
SetConfigEnable ( bool newVal ) : void
StartListening ( ) : void
StopListening ( ) : void
TelnetMainServer ( ) : System
Update ( ) : void

Приватные методы

Метод Описание
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

Описание методов

SetConfigEnable() публичный Метод

public SetConfigEnable ( bool newVal ) : void
newVal bool
Результат void

StartListening() публичный Метод

public StartListening ( ) : void
Результат void

StopListening() публичный Метод

public StopListening ( ) : void
Результат void

TelnetMainServer() публичный Метод

public TelnetMainServer ( ) : System
Результат System

Update() публичный Метод

public Update ( ) : void
Результат void