Property | Type | Description | |
---|---|---|---|
clientID | int | ||
encoder | UnicodeEncoding | ||
endSession | bool | ||
handshakeCompleted | bool | ||
inactiveShipsPerUpdate | byte | ||
intentionalConnectionEnd | bool | ||
lastTCPMessageSendTime | long | ||
lastUDPAckReceiveTime | long | ||
lastUDPMessageSendTime | long | ||
quitHelperMessageShow | bool | ||
screenshotInterval | int | ||
screenshotSettings | ScreenshotSettings | ||
tcpClient | TcpClient | ||
udpConnected | bool | ||
udpSocket | Socket | ||
updateInterval | int |
Property | Type | Description | |
---|---|---|---|
cachedScreenshots | List |
||
clientDataLock | object | ||
currentGameTitle | String | ||
currentMessageData | byte[] | ||
currentMessageDataIndex | int | ||
currentMessageHeader | byte[] | ||
currentMessageHeaderIndex | int | ||
currentMessageID | KLFCommon.ServerMessageID | ||
lastClientDataChangeTime | long | ||
lastClientDataWriteTime | long | ||
lastScreenshotShareTime | long | ||
pingStopwatch | Stopwatch | ||
queuedOutScreenshot | byte[] | ||
receiveBuffer | byte[] | ||
receiveHandleIndex | int | ||
receiveIndex | int | ||
screenshotOutLock | object | ||
serverSettingsLock | object | ||
stopwatch | Stopwatch | ||
tcpSendLock | object | ||
threadExceptionLock | object | ||
udpTimestampLock | object | ||
watchPlayerIndex | int | ||
watchPlayerName | String |
Method | Description | |
---|---|---|
Client ( ) : System | ||
connectToServer ( ClientSettings settings ) : bool | ||
endConnection ( ) : void | ||
throttledShareScreenshots ( ) : void |
Method | Description | |
---|---|---|
asyncReceive ( IAsyncResult result ) : void | ||
beginAsyncRead ( ) : void | ||
buildMessageByteArray ( KLFCommon id, byte data, byte prefix = null ) : byte[] | ||
cacheScreenshot ( Screenshot screenshot ) : void | ||
clearConnectionState ( ) : void | ||
connectionEnded ( ) : void | ||
connectionStarted ( ) : void | ||
encodeInteropMessage ( int id, byte data ) : byte[] | ||
enqueuePluginChatMessage ( String message, bool print = false ) : void | ||
enqueueTextMessage ( InTextMessage message, bool to_plugin = true ) : void | ||
enqueueTextMessage ( String message, bool from_server = false, bool to_plugin = true ) : void | ||
findCraftFilename ( String craft_name, byte &craft_type ) : String | ||
getCachedScreenshot ( int index, string player ) : Screenshot | ||
getCraftFilename ( String craft_name, byte craft_type ) : String | ||
handleChatInput ( String line ) : void | ||
handleConnection ( ) : void | ||
handleInteropMessage ( KLFCommon id, byte data ) : void | ||
handleInteropMessage ( int id, byte data ) : void | ||
handleMessage ( KLFCommon id, byte data ) : void | ||
handleReceive ( ) : void | ||
messageReceived ( KLFCommon id, byte data ) : void | ||
safeDelete ( String filename ) : void | ||
sendClientInteropMessage ( KLFCommon id, byte data ) : void | ||
sendConnectionEndMessage ( String message ) : void | ||
sendHandshakeMessage ( ) : void | ||
sendMessageTCP ( KLFCommon id, byte data ) : void | ||
sendMessageUDP ( KLFCommon id, byte data ) : void | ||
sendPluginUpdate ( byte data, bool primary ) : void | ||
sendScreenshotWatchPlayerMessage ( bool send_screenshot, int current_index, int index, String name ) : void | ||
sendShareCraftMessage ( String craft_name, byte data, byte type ) : void | ||
sendShareScreenshotMesssage ( byte data ) : void | ||
sendTextMessage ( String message ) : void | ||
sendUDPProbeMessage ( ) : void | ||
writeClientData ( ) : void |
protected asyncReceive ( IAsyncResult result ) : void | ||
result | IAsyncResult | |
return | void |
protected buildMessageByteArray ( KLFCommon id, byte data, byte prefix = null ) : byte[] | ||
id | KLFCommon | |
data | byte | |
prefix | byte | |
return | byte[] |
protected cacheScreenshot ( Screenshot screenshot ) : void | ||
screenshot | Screenshot | |
return | void |
public connectToServer ( ClientSettings settings ) : bool | ||
settings | ClientSettings | |
return | bool |
protected encodeInteropMessage ( int id, byte data ) : byte[] | ||
id | int | |
data | byte | |
return | byte[] |
protected enqueuePluginChatMessage ( String message, bool print = false ) : void | ||
message | String | |
bool | ||
return | void |
protected enqueueTextMessage ( InTextMessage message, bool to_plugin = true ) : void | ||
message | InTextMessage | |
to_plugin | bool | |
return | void |
protected enqueueTextMessage ( String message, bool from_server = false, bool to_plugin = true ) : void | ||
message | String | |
from_server | bool | |
to_plugin | bool | |
return | void |
protected findCraftFilename ( String craft_name, byte &craft_type ) : String | ||
craft_name | String | |
craft_type | byte | |
return | String |
protected getCachedScreenshot ( int index, string player ) : Screenshot | ||
index | int | |
player | string | |
return | Screenshot |
protected getCraftFilename ( String craft_name, byte craft_type ) : String | ||
craft_name | String | |
craft_type | byte | |
return | String |
protected handleChatInput ( String line ) : void | ||
line | String | |
return | void |
protected handleInteropMessage ( KLFCommon id, byte data ) : void | ||
id | KLFCommon | |
data | byte | |
return | void |
protected handleInteropMessage ( int id, byte data ) : void | ||
id | int | |
data | byte | |
return | void |
protected handleMessage ( KLFCommon id, byte data ) : void | ||
id | KLFCommon | |
data | byte | |
return | void |
protected abstract messageReceived ( KLFCommon id, byte data ) : void | ||
id | KLFCommon | |
data | byte | |
return | void |
protected safeDelete ( String filename ) : void | ||
filename | String | |
return | void |
protected abstract sendClientInteropMessage ( KLFCommon id, byte data ) : void | ||
id | KLFCommon | |
data | byte | |
return | void |
protected sendConnectionEndMessage ( String message ) : void | ||
message | String | |
return | void |
protected sendMessageTCP ( KLFCommon id, byte data ) : void | ||
id | KLFCommon | |
data | byte | |
return | void |
protected sendMessageUDP ( KLFCommon id, byte data ) : void | ||
id | KLFCommon | |
data | byte | |
return | void |
protected sendPluginUpdate ( byte data, bool primary ) : void | ||
data | byte | |
primary | bool | |
return | void |
protected sendScreenshotWatchPlayerMessage ( bool send_screenshot, int current_index, int index, String name ) : void | ||
send_screenshot | bool | |
current_index | int | |
index | int | |
name | String | |
return | void |
protected sendShareCraftMessage ( String craft_name, byte data, byte type ) : void | ||
craft_name | String | |
data | byte | |
type | byte | |
return | void |
protected sendShareScreenshotMesssage ( byte data ) : void | ||
data | byte | |
return | void |
protected sendTextMessage ( String message ) : void | ||
message | String | |
return | void |
protected KLFCommon.ServerMessageID currentMessageID | ||
return | KLFCommon.ServerMessageID |
public ScreenshotSettings screenshotSettings | ||
return | ScreenshotSettings |