C# Класс tdsm.core.ServerCore.Server

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
OverlimitSlots int
_NoAcceptData byte[]

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

Метод Описание
AddUniqueConnection ( string name, string ip ) : void
CheckSection ( int who, Vector2 position, int fluff = 1 ) : void
Command_AcceptConnections ( ISender sender, ArgumentList args ) : void

Toggle whether the server should accept new connections

Init ( ) : void
LoadUniqueConnection ( ) : System.Collections.Generic.List
PerformRestart ( ) : void
ResetSections ( ) : void
SafeClose ( this socket ) : void
SafeShutdown ( this socket ) : void
ServerLoop ( ) : void
StartServer ( ) : void
StopServer ( bool disconnect = true ) : void

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

Метод Описание
AcceptClient ( Socket client ) : bool
HandleSocketException ( Exception e ) : string
Server ( ) : System
ServerLoopLoop ( ) : void

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

AddUniqueConnection() публичный статический Метод

public static AddUniqueConnection ( string name, string ip ) : void
name string
ip string
Результат void

CheckSection() публичный статический Метод

public static CheckSection ( int who, Vector2 position, int fluff = 1 ) : void
who int
position Vector2
fluff int
Результат void

Command_AcceptConnections() публичный статический Метод

Toggle whether the server should accept new connections
public static Command_AcceptConnections ( ISender sender, ArgumentList args ) : void
sender ISender Sending player
args ArgumentList Arguments sent with command
Результат void

Init() публичный статический Метод

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

LoadUniqueConnection() публичный статический Метод

public static LoadUniqueConnection ( ) : System.Collections.Generic.List
Результат System.Collections.Generic.List

PerformRestart() публичный статический Метод

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

ResetSections() публичный статический Метод

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

SafeClose() публичный статический Метод

public static SafeClose ( this socket ) : void
socket this
Результат void

SafeShutdown() публичный статический Метод

public static SafeShutdown ( this socket ) : void
socket this
Результат void

ServerLoop() публичный статический Метод

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

StartServer() публичный статический Метод

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

StopServer() публичный статический Метод

public static StopServer ( bool disconnect = true ) : void
disconnect bool
Результат void

Описание свойств

OverlimitSlots публичное статическое свойство

public static int OverlimitSlots
Результат int

_NoAcceptData публичное статическое свойство

public static byte[] _NoAcceptData
Результат byte[]