프로퍼티 | 타입 | 설명 | |
---|---|---|---|
bannedIPs | HashSet |
||
clientActivityCountLock | object | ||
clientMessageQueue | ConcurrentQueue |
||
clients | ServerClient[] | ||
commandThread | Thread | ||
connectionThread | Thread | ||
consoleWriteLock | object | ||
httpListener | HttpListener | ||
listenThread | Thread | ||
outgoingMessageThread | Thread | ||
quit | bool | ||
savedThrottleStates | ServerClient.ThrottleState>.Dictionary | ||
settings | ServerSettings | ||
stop | bool | ||
stopwatch | Stopwatch | ||
tcpListener | TcpListener | ||
threadException | Exception | ||
threadExceptionLock | object | ||
threadExceptionStackTrace | String | ||
udpClient | UdpClient |
메소드 | 설명 | |
---|---|---|
Server ( ServerSettings settings ) : System | ||
buildMessageArray ( KLFCommon id, byte data ) : byte[] | ||
clearState ( ) : void | ||
clientActivityLevelChanged ( int index ) : void | ||
clientIsReady ( int index ) : bool | ||
clientIsValid ( int index ) : bool | ||
debugConsoleWriteLine ( String message ) : void | ||
disconnectClient ( int index, String message ) : void | ||
handleClientTextMessage ( int client_index, String message_text ) : void | ||
handleMessage ( int client_index, KLFCommon id, byte data ) : void | ||
hostingLoop ( ) : void | ||
messageFloodIncrement ( int index ) : void | ||
passExceptionToMain ( Exception e ) : void | ||
queueClientMessage ( int client_index, KLFCommon id, byte data ) : void | ||
saveScreenshot ( Screenshot screenshot, String player ) : void | ||
sendOutgoingMessages ( ) : void | ||
stampedConsoleWriteLine ( String message ) : void |
메소드 | 설명 | |
---|---|---|
addClient ( TcpClient tcp_client ) : int | ||
asyncHTTPCallback ( IAsyncResult result ) : void | ||
asyncUDPReceive ( IAsyncResult result ) : void | ||
banClient ( int index ) : void | ||
banIP ( IPAddress address ) : void | ||
clearBans ( ) : void | ||
getClientIP ( int index ) : IPAddress | ||
getClientIndexByName ( String name ) : int | ||
handleCommands ( ) : void | ||
handleConnections ( ) : void | ||
listenForClients ( ) : void | ||
loadBanList ( ) : void | ||
printCommands ( ) : void | ||
safeAbort ( Thread thread, bool join = false ) : void | ||
saveBanList ( ) : void | ||
sendConnectionEndMessageDirect ( TcpClient client, String message ) : void | ||
sendCraftFile ( int client_index, String craft_name, byte data, byte type ) : void | ||
sendHandshakeMessage ( int client_index ) : void | ||
sendHandshakeRefusalMessageDirect ( TcpClient client, String message ) : void | ||
sendMessageHeaderDirect ( TcpClient client, KLFCommon id, int msg_length ) : void | ||
sendPluginUpdateToAll ( byte data, bool in_flight_only, int exclude_index = -1 ) : void | ||
sendScreenshot ( int client_index, Screenshot screenshot ) : void | ||
sendScreenshotToWatchers ( int client_index, Screenshot screenshot ) : void | ||
sendServerMessage ( int client_index, String message ) : void | ||
sendServerMessageToAll ( String message, int exclude_index = -1 ) : void | ||
sendServerSettings ( int client_index ) : void | ||
sendServerSettingsToAll ( ) : void | ||
sendTextMessage ( int client_index, String message ) : void | ||
sendTextMessageToAll ( String message, int exclude_index = -1 ) : void | ||
serverSettingBytes ( ) : byte[] | ||
unbanIP ( IPAddress address ) : void |
public Server ( ServerSettings settings ) : System | ||
settings | ServerSettings | |
리턴 | System |
public static buildMessageArray ( KLFCommon id, byte data ) : byte[] | ||
id | KLFCommon | |
data | byte | |
리턴 | byte[] |
public clientActivityLevelChanged ( int index ) : void | ||
index | int | |
리턴 | void |
public static debugConsoleWriteLine ( String message ) : void | ||
message | String | |
리턴 | void |
public disconnectClient ( int index, String message ) : void | ||
index | int | |
message | String | |
리턴 | void |
public handleClientTextMessage ( int client_index, String message_text ) : void | ||
client_index | int | |
message_text | String | |
리턴 | void |
public handleMessage ( int client_index, KLFCommon id, byte data ) : void | ||
client_index | int | |
id | KLFCommon | |
data | byte | |
리턴 | void |
public queueClientMessage ( int client_index, KLFCommon id, byte data ) : void | ||
client_index | int | |
id | KLFCommon | |
data | byte | |
리턴 | void |
public saveScreenshot ( Screenshot screenshot, String player ) : void | ||
screenshot | Screenshot | |
player | String | |
리턴 | void |
public static stampedConsoleWriteLine ( String message ) : void | ||
message | String | |
리턴 | void |
public Dictionary |
||
리턴 | ServerClient.ThrottleState>.Dictionary |