C# Class Terraria.Netplay

Mostrar archivo Open project: EmuDevs/EDTerraria Class Usage Examples

Public Properties

Property Type Description
BanFilePath string
Clients Terraria.RemoteClient[]
Connection RemoteServer
IsListening bool
IsServerRunning bool
ListenPort int
ServerIP System.Net.IPAddress
ServerIPText string
ServerPassword string
TcpListener ISocket
UseUPNP bool
anyClients bool
disconnect bool
portForwardIP string
portForwardOpen bool
portForwardPort int
spamCheck bool

Public Methods

Method Description
AddBan ( int plr ) : void
GetLocalIPAddress ( ) : string
GetSectionX ( int x ) : int
GetSectionY ( int y ) : int
Initialize ( ) : void
IsBanned ( RemoteAddress address ) : bool
OnConnectedToSocialServer ( ISocket client ) : void
ResetNetDiag ( ) : void
ResetSections ( ) : void
ServerLoop ( object threadContext ) : void
SetRemoteIP ( string remoteAddress ) : bool
SocialClientLoop ( object threadContext ) : void
StartServer ( ) : void
StartSocialClient ( ISocket socket ) : void
StartTcpClient ( ) : void
TcpClientLoop ( object threadContext ) : void
closePort ( ) : void
newRecent ( ) : void

Private Methods

Method Description
ClientLoopSetup ( RemoteAddress address ) : void
FindNextOpenClientSlot ( ) : int
InnerClientLoop ( ) : void
OnConnectionAccepted ( ISocket client ) : void
OpenPort ( ) : void
StartListening ( ) : bool
StopListening ( ) : void

Method Details

AddBan() public static method

public static AddBan ( int plr ) : void
plr int
return void

GetLocalIPAddress() public static method

public static GetLocalIPAddress ( ) : string
return string

GetSectionX() public static method

public static GetSectionX ( int x ) : int
x int
return int

GetSectionY() public static method

public static GetSectionY ( int y ) : int
y int
return int

Initialize() public static method

public static Initialize ( ) : void
return void

IsBanned() public static method

public static IsBanned ( RemoteAddress address ) : bool
address Terraria.Net.RemoteAddress
return bool

OnConnectedToSocialServer() public static method

public static OnConnectedToSocialServer ( ISocket client ) : void
client ISocket
return void

ResetNetDiag() public static method

public static ResetNetDiag ( ) : void
return void

ResetSections() public static method

public static ResetSections ( ) : void
return void

ServerLoop() public static method

public static ServerLoop ( object threadContext ) : void
threadContext object
return void

SetRemoteIP() public static method

public static SetRemoteIP ( string remoteAddress ) : bool
remoteAddress string
return bool

SocialClientLoop() public static method

public static SocialClientLoop ( object threadContext ) : void
threadContext object
return void

StartServer() public static method

public static StartServer ( ) : void
return void

StartSocialClient() public static method

public static StartSocialClient ( ISocket socket ) : void
socket ISocket
return void

StartTcpClient() public static method

public static StartTcpClient ( ) : void
return void

TcpClientLoop() public static method

public static TcpClientLoop ( object threadContext ) : void
threadContext object
return void

closePort() public static method

public static closePort ( ) : void
return void

newRecent() public static method

public static newRecent ( ) : void
return void

Property Details

BanFilePath public_oe static_oe property

public static string BanFilePath
return string

Clients public_oe static_oe property

public static RemoteClient[],Terraria Clients
return Terraria.RemoteClient[]

Connection public_oe static_oe property

public static RemoteServer,Terraria Connection
return RemoteServer

IsListening public_oe static_oe property

public static bool IsListening
return bool

IsServerRunning public_oe static_oe property

public static bool IsServerRunning
return bool

ListenPort public_oe static_oe property

public static int ListenPort
return int

ServerIP public_oe static_oe property

public static IPAddress,System.Net ServerIP
return System.Net.IPAddress

ServerIPText public_oe static_oe property

public static string ServerIPText
return string

ServerPassword public_oe static_oe property

public static string ServerPassword
return string

TcpListener public_oe static_oe property

public static ISocket TcpListener
return ISocket

UseUPNP public_oe static_oe property

public static bool UseUPNP
return bool

anyClients public_oe static_oe property

public static bool anyClients
return bool

disconnect public_oe static_oe property

public static bool disconnect
return bool

portForwardIP public_oe static_oe property

public static string portForwardIP
return string

portForwardOpen public_oe static_oe property

public static bool portForwardOpen
return bool

portForwardPort public_oe static_oe property

public static int portForwardPort
return int

spamCheck public_oe static_oe property

public static bool spamCheck
return bool