C# 클래스 Client, KerbalLiveFeed

파일 보기 프로젝트 열기: SodiumEyes/KerbalLiveFeed 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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

보호된 프로퍼티들

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
Client ( ) : System
connectToServer ( ClientSettings settings ) : bool
endConnection ( ) : void
throttledShareScreenshots ( ) : void

보호된 메소드들

메소드 설명
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

메소드 상세

Client() 공개 메소드

public Client ( ) : System
리턴 System

asyncReceive() 보호된 메소드

protected asyncReceive ( IAsyncResult result ) : void
result IAsyncResult
리턴 void

beginAsyncRead() 보호된 메소드

protected beginAsyncRead ( ) : void
리턴 void

buildMessageByteArray() 보호된 메소드

protected buildMessageByteArray ( KLFCommon id, byte data, byte prefix = null ) : byte[]
id KLFCommon
data byte
prefix byte
리턴 byte[]

cacheScreenshot() 보호된 메소드

protected cacheScreenshot ( Screenshot screenshot ) : void
screenshot Screenshot
리턴 void

clearConnectionState() 보호된 메소드

protected clearConnectionState ( ) : void
리턴 void

connectToServer() 공개 메소드

public connectToServer ( ClientSettings settings ) : bool
settings ClientSettings
리턴 bool

connectionEnded() 보호된 메소드

protected connectionEnded ( ) : void
리턴 void

connectionStarted() 보호된 메소드

protected connectionStarted ( ) : void
리턴 void

encodeInteropMessage() 보호된 메소드

protected encodeInteropMessage ( int id, byte data ) : byte[]
id int
data byte
리턴 byte[]

endConnection() 공개 메소드

public endConnection ( ) : void
리턴 void

enqueuePluginChatMessage() 보호된 메소드

protected enqueuePluginChatMessage ( String message, bool print = false ) : void
message String
print bool
리턴 void

enqueueTextMessage() 보호된 메소드

protected enqueueTextMessage ( InTextMessage message, bool to_plugin = true ) : void
message InTextMessage
to_plugin bool
리턴 void

enqueueTextMessage() 보호된 메소드

protected enqueueTextMessage ( String message, bool from_server = false, bool to_plugin = true ) : void
message String
from_server bool
to_plugin bool
리턴 void

findCraftFilename() 보호된 메소드

protected findCraftFilename ( String craft_name, byte &craft_type ) : String
craft_name String
craft_type byte
리턴 String

getCachedScreenshot() 보호된 메소드

protected getCachedScreenshot ( int index, string player ) : Screenshot
index int
player string
리턴 Screenshot

getCraftFilename() 보호된 메소드

protected getCraftFilename ( String craft_name, byte craft_type ) : String
craft_name String
craft_type byte
리턴 String

handleChatInput() 보호된 메소드

protected handleChatInput ( String line ) : void
line String
리턴 void

handleConnection() 보호된 메소드

protected handleConnection ( ) : void
리턴 void

handleInteropMessage() 보호된 메소드

protected handleInteropMessage ( KLFCommon id, byte data ) : void
id KLFCommon
data byte
리턴 void

handleInteropMessage() 보호된 메소드

protected handleInteropMessage ( int id, byte data ) : void
id int
data byte
리턴 void

handleMessage() 보호된 메소드

protected handleMessage ( KLFCommon id, byte data ) : void
id KLFCommon
data byte
리턴 void

handleReceive() 보호된 메소드

protected handleReceive ( ) : void
리턴 void

messageReceived() 보호된 추상적인 메소드

protected abstract messageReceived ( KLFCommon id, byte data ) : void
id KLFCommon
data byte
리턴 void

safeDelete() 보호된 메소드

protected safeDelete ( String filename ) : void
filename String
리턴 void

sendClientInteropMessage() 보호된 추상적인 메소드

protected abstract sendClientInteropMessage ( KLFCommon id, byte data ) : void
id KLFCommon
data byte
리턴 void

sendConnectionEndMessage() 보호된 메소드

protected sendConnectionEndMessage ( String message ) : void
message String
리턴 void

sendHandshakeMessage() 보호된 메소드

protected sendHandshakeMessage ( ) : void
리턴 void

sendMessageTCP() 보호된 메소드

protected sendMessageTCP ( KLFCommon id, byte data ) : void
id KLFCommon
data byte
리턴 void

sendMessageUDP() 보호된 메소드

protected sendMessageUDP ( KLFCommon id, byte data ) : void
id KLFCommon
data byte
리턴 void

sendPluginUpdate() 보호된 메소드

protected sendPluginUpdate ( byte data, bool primary ) : void
data byte
primary bool
리턴 void

sendScreenshotWatchPlayerMessage() 보호된 메소드

protected sendScreenshotWatchPlayerMessage ( bool send_screenshot, int current_index, int index, String name ) : void
send_screenshot bool
current_index int
index int
name String
리턴 void

sendShareCraftMessage() 보호된 메소드

protected sendShareCraftMessage ( String craft_name, byte data, byte type ) : void
craft_name String
data byte
type byte
리턴 void

sendShareScreenshotMesssage() 보호된 메소드

protected sendShareScreenshotMesssage ( byte data ) : void
data byte
리턴 void

sendTextMessage() 보호된 메소드

protected sendTextMessage ( String message ) : void
message String
리턴 void

sendUDPProbeMessage() 보호된 메소드

protected sendUDPProbeMessage ( ) : void
리턴 void

throttledShareScreenshots() 공개 메소드

public throttledShareScreenshots ( ) : void
리턴 void

writeClientData() 보호된 메소드

protected writeClientData ( ) : void
리턴 void

프로퍼티 상세

cachedScreenshots 보호되어 있는 프로퍼티

protected List cachedScreenshots
리턴 List

clientDataLock 보호되어 있는 프로퍼티

protected object clientDataLock
리턴 object

clientID 공개적으로 프로퍼티

public int clientID
리턴 int

currentGameTitle 보호되어 있는 프로퍼티

protected String currentGameTitle
리턴 String

currentMessageData 보호되어 있는 프로퍼티

protected byte[] currentMessageData
리턴 byte[]

currentMessageDataIndex 보호되어 있는 프로퍼티

protected int currentMessageDataIndex
리턴 int

currentMessageHeader 보호되어 있는 프로퍼티

protected byte[] currentMessageHeader
리턴 byte[]

currentMessageHeaderIndex 보호되어 있는 프로퍼티

protected int currentMessageHeaderIndex
리턴 int

currentMessageID 보호되어 있는 프로퍼티

protected KLFCommon.ServerMessageID currentMessageID
리턴 KLFCommon.ServerMessageID

encoder 공개적으로 정적으로 프로퍼티

public static UnicodeEncoding encoder
리턴 UnicodeEncoding

endSession 공개적으로 프로퍼티

public bool endSession
리턴 bool

handshakeCompleted 공개적으로 프로퍼티

public bool handshakeCompleted
리턴 bool

inactiveShipsPerUpdate 공개적으로 프로퍼티

public byte inactiveShipsPerUpdate
리턴 byte

intentionalConnectionEnd 공개적으로 프로퍼티

public bool intentionalConnectionEnd
리턴 bool

lastClientDataChangeTime 보호되어 있는 프로퍼티

protected long lastClientDataChangeTime
리턴 long

lastClientDataWriteTime 보호되어 있는 프로퍼티

protected long lastClientDataWriteTime
리턴 long

lastScreenshotShareTime 보호되어 있는 프로퍼티

protected long lastScreenshotShareTime
리턴 long

lastTCPMessageSendTime 공개적으로 프로퍼티

public long lastTCPMessageSendTime
리턴 long

lastUDPAckReceiveTime 공개적으로 프로퍼티

public long lastUDPAckReceiveTime
리턴 long

lastUDPMessageSendTime 공개적으로 프로퍼티

public long lastUDPMessageSendTime
리턴 long

pingStopwatch 보호되어 있는 프로퍼티

protected Stopwatch pingStopwatch
리턴 Stopwatch

queuedOutScreenshot 보호되어 있는 프로퍼티

protected byte[] queuedOutScreenshot
리턴 byte[]

quitHelperMessageShow 공개적으로 프로퍼티

public bool quitHelperMessageShow
리턴 bool

receiveBuffer 보호되어 있는 프로퍼티

protected byte[] receiveBuffer
리턴 byte[]

receiveHandleIndex 보호되어 있는 프로퍼티

protected int receiveHandleIndex
리턴 int

receiveIndex 보호되어 있는 프로퍼티

protected int receiveIndex
리턴 int

screenshotInterval 공개적으로 프로퍼티

public int screenshotInterval
리턴 int

screenshotOutLock 보호되어 있는 프로퍼티

protected object screenshotOutLock
리턴 object

screenshotSettings 공개적으로 프로퍼티

public ScreenshotSettings screenshotSettings
리턴 ScreenshotSettings

serverSettingsLock 보호되어 있는 프로퍼티

protected object serverSettingsLock
리턴 object

stopwatch 보호되어 있는 프로퍼티

protected Stopwatch stopwatch
리턴 Stopwatch

tcpClient 공개적으로 프로퍼티

public TcpClient tcpClient
리턴 TcpClient

tcpSendLock 보호되어 있는 프로퍼티

protected object tcpSendLock
리턴 object

threadExceptionLock 보호되어 있는 프로퍼티

protected object threadExceptionLock
리턴 object

udpConnected 공개적으로 프로퍼티

public bool udpConnected
리턴 bool

udpSocket 공개적으로 프로퍼티

public Socket udpSocket
리턴 Socket

udpTimestampLock 보호되어 있는 프로퍼티

protected object udpTimestampLock
리턴 object

updateInterval 공개적으로 프로퍼티

public int updateInterval
리턴 int

watchPlayerIndex 보호되어 있는 프로퍼티

protected int watchPlayerIndex
리턴 int

watchPlayerName 보호되어 있는 프로퍼티

protected String watchPlayerName
리턴 String