C# Class tdsm.core.ServerCore.Server

Afficher le fichier Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Méthodes publiques

Свойство Type Description
OverlimitSlots int
_NoAcceptData byte[]

Méthodes publiques

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

Private Methods

Méthode Description
AcceptClient ( Socket client ) : bool
HandleSocketException ( Exception e ) : string
Server ( ) : System
ServerLoopLoop ( ) : void

Method Details

AddUniqueConnection() public static méthode

public static AddUniqueConnection ( string name, string ip ) : void
name string
ip string
Résultat void

CheckSection() public static méthode

public static CheckSection ( int who, Vector2 position, int fluff = 1 ) : void
who int
position Vector2
fluff int
Résultat void

Command_AcceptConnections() public static méthode

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
Résultat void

Init() public static méthode

public static Init ( ) : void
Résultat void

LoadUniqueConnection() public static méthode

public static LoadUniqueConnection ( ) : System.Collections.Generic.List
Résultat System.Collections.Generic.List

PerformRestart() public static méthode

public static PerformRestart ( ) : void
Résultat void

ResetSections() public static méthode

public static ResetSections ( ) : void
Résultat void

SafeClose() public static méthode

public static SafeClose ( this socket ) : void
socket this
Résultat void

SafeShutdown() public static méthode

public static SafeShutdown ( this socket ) : void
socket this
Résultat void

ServerLoop() public static méthode

public static ServerLoop ( ) : void
Résultat void

StartServer() public static méthode

public static StartServer ( ) : void
Résultat void

StopServer() public static méthode

public static StopServer ( bool disconnect = true ) : void
disconnect bool
Résultat void

Property Details

OverlimitSlots public_oe static_oe property

public static int OverlimitSlots
Résultat int

_NoAcceptData public_oe static_oe property

public static byte[] _NoAcceptData
Résultat byte[]