C# Class ConsoleClient, KerbalLiveFeed

显示文件 Open project: SodiumEyes/KerbalLiveFeed Class Usage Examples

Public Properties

Property Type Description
interopInQueue ConcurrentQueue
interopOutQueue ConcurrentQueue
lastInteropWriteTime long

Protected Properties

Property Type Description
threadException Exception
threadExceptionStackTrace String

Public Methods

Method Description
connect ( ClientSettings, settings ) : void
connectionThreadRun ( ) : void
handleChat ( ) : void
handlePluginInterop ( ) : void
handlePluginUpdates ( ) : void
readPluginInterop ( ) : void
safeAbort ( Thread thread, bool join = false ) : void

Protected Methods

Method Description
connectionEnded ( ) : void
connectionStarted ( ) : void
enqueueTextMessage ( InTextMessage message, bool to_plugin = true ) : void
messageReceived ( KLFCommon, id, byte data ) : void
passExceptionToMain ( Exception e ) : void
sendClientInteropMessage ( KLFCommon, id, byte data ) : void

Private Methods

Method Description
connectionLoop ( ClientSettings, settings ) : bool
writePluginInterop ( ) : bool

Method Details

connect() public method

public connect ( ClientSettings, settings ) : void
settings ClientSettings,
return void

connectionEnded() protected method

protected connectionEnded ( ) : void
return void

connectionStarted() protected method

protected connectionStarted ( ) : void
return void

connectionThreadRun() public method

public connectionThreadRun ( ) : void
return void

enqueueTextMessage() protected method

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

handleChat() public method

public handleChat ( ) : void
return void

handlePluginInterop() public method

public handlePluginInterop ( ) : void
return void

handlePluginUpdates() public method

public handlePluginUpdates ( ) : void
return void

messageReceived() protected method

protected messageReceived ( KLFCommon, id, byte data ) : void
id KLFCommon,
data byte
return void

passExceptionToMain() protected method

protected passExceptionToMain ( Exception e ) : void
e Exception
return void

readPluginInterop() public method

public readPluginInterop ( ) : void
return void

safeAbort() public method

public safeAbort ( Thread thread, bool join = false ) : void
thread Thread
join bool
return void

sendClientInteropMessage() protected method

protected sendClientInteropMessage ( KLFCommon, id, byte data ) : void
id KLFCommon,
data byte
return void

Property Details

interopInQueue public_oe property

public ConcurrentQueue interopInQueue
return ConcurrentQueue

interopOutQueue public_oe property

public ConcurrentQueue interopOutQueue
return ConcurrentQueue

lastInteropWriteTime public_oe property

public long lastInteropWriteTime
return long

threadException protected_oe property

protected Exception threadException
return Exception

threadExceptionStackTrace protected_oe property

protected String threadExceptionStackTrace
return String