C# Class tdsm.core.ServerCore.Server

Mostrar archivo Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Public Properties

Property Type Description
OverlimitSlots int
_NoAcceptData byte[]

Public Methods

Method 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

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

Method Details

AddUniqueConnection() public static method

public static AddUniqueConnection ( string name, string ip ) : void
name string
ip string
return void

CheckSection() public static method

public static CheckSection ( int who, Vector2 position, int fluff = 1 ) : void
who int
position Vector2
fluff int
return void

Command_AcceptConnections() public static method

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
return void

Init() public static method

public static Init ( ) : void
return void

LoadUniqueConnection() public static method

public static LoadUniqueConnection ( ) : System.Collections.Generic.List
return System.Collections.Generic.List

PerformRestart() public static method

public static PerformRestart ( ) : void
return void

ResetSections() public static method

public static ResetSections ( ) : void
return void

SafeClose() public static method

public static SafeClose ( this socket ) : void
socket this
return void

SafeShutdown() public static method

public static SafeShutdown ( this socket ) : void
socket this
return void

ServerLoop() public static method

public static ServerLoop ( ) : void
return void

StartServer() public static method

public static StartServer ( ) : void
return void

StopServer() public static method

public static StopServer ( bool disconnect = true ) : void
disconnect bool
return void

Property Details

OverlimitSlots public_oe static_oe property

public static int OverlimitSlots
return int

_NoAcceptData public_oe static_oe property

public static byte[] _NoAcceptData
return byte[]