C# Class Client, KerbalLiveFeed

Afficher le fichier Open project: SodiumEyes/KerbalLiveFeed Class Usage Examples

Méthodes publiques

Свойство 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

Protected Properties

Свойство 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

Méthodes publiques

Méthode Description
Client ( ) : System
connectToServer ( ClientSettings settings ) : bool
endConnection ( ) : void
throttledShareScreenshots ( ) : void

Méthodes protégées

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

Method Details

Client() public méthode

public Client ( ) : System
Résultat System

asyncReceive() protected méthode

protected asyncReceive ( IAsyncResult result ) : void
result IAsyncResult
Résultat void

beginAsyncRead() protected méthode

protected beginAsyncRead ( ) : void
Résultat void

buildMessageByteArray() protected méthode

protected buildMessageByteArray ( KLFCommon id, byte data, byte prefix = null ) : byte[]
id KLFCommon
data byte
prefix byte
Résultat byte[]

cacheScreenshot() protected méthode

protected cacheScreenshot ( Screenshot screenshot ) : void
screenshot Screenshot
Résultat void

clearConnectionState() protected méthode

protected clearConnectionState ( ) : void
Résultat void

connectToServer() public méthode

public connectToServer ( ClientSettings settings ) : bool
settings ClientSettings
Résultat bool

connectionEnded() protected méthode

protected connectionEnded ( ) : void
Résultat void

connectionStarted() protected méthode

protected connectionStarted ( ) : void
Résultat void

encodeInteropMessage() protected méthode

protected encodeInteropMessage ( int id, byte data ) : byte[]
id int
data byte
Résultat byte[]

endConnection() public méthode

public endConnection ( ) : void
Résultat void

enqueuePluginChatMessage() protected méthode

protected enqueuePluginChatMessage ( String message, bool print = false ) : void
message String
print bool
Résultat void

enqueueTextMessage() protected méthode

protected enqueueTextMessage ( InTextMessage message, bool to_plugin = true ) : void
message InTextMessage
to_plugin bool
Résultat void

enqueueTextMessage() protected méthode

protected enqueueTextMessage ( String message, bool from_server = false, bool to_plugin = true ) : void
message String
from_server bool
to_plugin bool
Résultat void

findCraftFilename() protected méthode

protected findCraftFilename ( String craft_name, byte &craft_type ) : String
craft_name String
craft_type byte
Résultat String

getCachedScreenshot() protected méthode

protected getCachedScreenshot ( int index, string player ) : Screenshot
index int
player string
Résultat Screenshot

getCraftFilename() protected méthode

protected getCraftFilename ( String craft_name, byte craft_type ) : String
craft_name String
craft_type byte
Résultat String

handleChatInput() protected méthode

protected handleChatInput ( String line ) : void
line String
Résultat void

handleConnection() protected méthode

protected handleConnection ( ) : void
Résultat void

handleInteropMessage() protected méthode

protected handleInteropMessage ( KLFCommon id, byte data ) : void
id KLFCommon
data byte
Résultat void

handleInteropMessage() protected méthode

protected handleInteropMessage ( int id, byte data ) : void
id int
data byte
Résultat void

handleMessage() protected méthode

protected handleMessage ( KLFCommon id, byte data ) : void
id KLFCommon
data byte
Résultat void

handleReceive() protected méthode

protected handleReceive ( ) : void
Résultat void

messageReceived() protected abstract méthode

protected abstract messageReceived ( KLFCommon id, byte data ) : void
id KLFCommon
data byte
Résultat void

safeDelete() protected méthode

protected safeDelete ( String filename ) : void
filename String
Résultat void

sendClientInteropMessage() protected abstract méthode

protected abstract sendClientInteropMessage ( KLFCommon id, byte data ) : void
id KLFCommon
data byte
Résultat void

sendConnectionEndMessage() protected méthode

protected sendConnectionEndMessage ( String message ) : void
message String
Résultat void

sendHandshakeMessage() protected méthode

protected sendHandshakeMessage ( ) : void
Résultat void

sendMessageTCP() protected méthode

protected sendMessageTCP ( KLFCommon id, byte data ) : void
id KLFCommon
data byte
Résultat void

sendMessageUDP() protected méthode

protected sendMessageUDP ( KLFCommon id, byte data ) : void
id KLFCommon
data byte
Résultat void

sendPluginUpdate() protected méthode

protected sendPluginUpdate ( byte data, bool primary ) : void
data byte
primary bool
Résultat void

sendScreenshotWatchPlayerMessage() protected méthode

protected sendScreenshotWatchPlayerMessage ( bool send_screenshot, int current_index, int index, String name ) : void
send_screenshot bool
current_index int
index int
name String
Résultat void

sendShareCraftMessage() protected méthode

protected sendShareCraftMessage ( String craft_name, byte data, byte type ) : void
craft_name String
data byte
type byte
Résultat void

sendShareScreenshotMesssage() protected méthode

protected sendShareScreenshotMesssage ( byte data ) : void
data byte
Résultat void

sendTextMessage() protected méthode

protected sendTextMessage ( String message ) : void
message String
Résultat void

sendUDPProbeMessage() protected méthode

protected sendUDPProbeMessage ( ) : void
Résultat void

throttledShareScreenshots() public méthode

public throttledShareScreenshots ( ) : void
Résultat void

writeClientData() protected méthode

protected writeClientData ( ) : void
Résultat void

Property Details

cachedScreenshots protected_oe property

protected List cachedScreenshots
Résultat List

clientDataLock protected_oe property

protected object clientDataLock
Résultat object

clientID public_oe property

public int clientID
Résultat int

currentGameTitle protected_oe property

protected String currentGameTitle
Résultat String

currentMessageData protected_oe property

protected byte[] currentMessageData
Résultat byte[]

currentMessageDataIndex protected_oe property

protected int currentMessageDataIndex
Résultat int

currentMessageHeader protected_oe property

protected byte[] currentMessageHeader
Résultat byte[]

currentMessageHeaderIndex protected_oe property

protected int currentMessageHeaderIndex
Résultat int

currentMessageID protected_oe property

protected KLFCommon.ServerMessageID currentMessageID
Résultat KLFCommon.ServerMessageID

encoder public_oe static_oe property

public static UnicodeEncoding encoder
Résultat UnicodeEncoding

endSession public_oe property

public bool endSession
Résultat bool

handshakeCompleted public_oe property

public bool handshakeCompleted
Résultat bool

inactiveShipsPerUpdate public_oe property

public byte inactiveShipsPerUpdate
Résultat byte

intentionalConnectionEnd public_oe property

public bool intentionalConnectionEnd
Résultat bool

lastClientDataChangeTime protected_oe property

protected long lastClientDataChangeTime
Résultat long

lastClientDataWriteTime protected_oe property

protected long lastClientDataWriteTime
Résultat long

lastScreenshotShareTime protected_oe property

protected long lastScreenshotShareTime
Résultat long

lastTCPMessageSendTime public_oe property

public long lastTCPMessageSendTime
Résultat long

lastUDPAckReceiveTime public_oe property

public long lastUDPAckReceiveTime
Résultat long

lastUDPMessageSendTime public_oe property

public long lastUDPMessageSendTime
Résultat long

pingStopwatch protected_oe property

protected Stopwatch pingStopwatch
Résultat Stopwatch

queuedOutScreenshot protected_oe property

protected byte[] queuedOutScreenshot
Résultat byte[]

quitHelperMessageShow public_oe property

public bool quitHelperMessageShow
Résultat bool

receiveBuffer protected_oe property

protected byte[] receiveBuffer
Résultat byte[]

receiveHandleIndex protected_oe property

protected int receiveHandleIndex
Résultat int

receiveIndex protected_oe property

protected int receiveIndex
Résultat int

screenshotInterval public_oe property

public int screenshotInterval
Résultat int

screenshotOutLock protected_oe property

protected object screenshotOutLock
Résultat object

screenshotSettings public_oe property

public ScreenshotSettings screenshotSettings
Résultat ScreenshotSettings

serverSettingsLock protected_oe property

protected object serverSettingsLock
Résultat object

stopwatch protected_oe property

protected Stopwatch stopwatch
Résultat Stopwatch

tcpClient public_oe property

public TcpClient tcpClient
Résultat TcpClient

tcpSendLock protected_oe property

protected object tcpSendLock
Résultat object

threadExceptionLock protected_oe property

protected object threadExceptionLock
Résultat object

udpConnected public_oe property

public bool udpConnected
Résultat bool

udpSocket public_oe property

public Socket udpSocket
Résultat Socket

udpTimestampLock protected_oe property

protected object udpTimestampLock
Résultat object

updateInterval public_oe property

public int updateInterval
Résultat int

watchPlayerIndex protected_oe property

protected int watchPlayerIndex
Résultat int

watchPlayerName protected_oe property

protected String watchPlayerName
Résultat String