C# Class KMPServer.Client

ファイルを表示 Open project: TehGimp/KerbalMultiPlayer

Public Properties

Property Type Description
activityLevel ActivityLevel
activityLevelLock object
averageWarpRate float
clientIndex int
connectionStartTime long
currentBytesToReceive int
currentMessage byte[]
currentMessageHeaderRecieved bool
currentMessageID KMPCommon.ClientMessageID
currentSubspaceID int
currentVessel System.Guid
disconnectMessage string
enteredSubspaceAt double
guid System.Guid
hasReceivedScenarioModules bool
lagWarning int
lastInFlightActivityTime long
lastInGameActivityTime long
lastPollTime long
lastReceiveTime long
lastSyncTime long
lastTick double
lastUDPACKTime long
playerID int
queuedOutMessages ConcurrentQueue
queuedOutMessagesHighPriority ConcurrentQueue
queuedOutMessagesSplit ConcurrentQueue
receivedHandshake bool
screenshot byte[]
screenshotLock object
sendOutgoingMessagesLock object
sharedCraftFile byte[]
sharedCraftLock object
sharedCraftName String
sharedCraftType KMPCommon.CraftType
syncOffset double
tcpClient System.Net.Sockets.TcpClient
tcpClientLock object
timestampLock object
username String
warping bool
watchPlayerName String
watchPlayerNameLock object

Public Methods

Method Description
Client ( Server parent ) : System
ToString ( ) : string
disconnected ( ) : void
queueOutgoingMessage ( KMPCommon id, byte data ) : void
queueOutgoingMessage ( byte message_bytes ) : void
resetProperties ( ) : void
sendOutgoingMessages ( ) : void
splitOutgoingMessage ( byte &next_message ) : void
updateActivityLevel ( ActivityLevel level ) : void
updateReceiveTimestamp ( ) : void

Private Methods

Method Description
asyncReceive ( IAsyncResult ar ) : void
asyncSend ( IAsyncResult result ) : void
beginAsyncRead ( ) : void
endReceivingMessages ( ) : void
messageReceived ( KMPCommon id, byte data ) : void
startReceivingMessages ( ) : void
syncTimeRewrite ( byte &next_message ) : void

Method Details

Client() public method

public Client ( Server parent ) : System
parent Server
return System

ToString() public method

public ToString ( ) : string
return string

disconnected() public method

public disconnected ( ) : void
return void

queueOutgoingMessage() public method

public queueOutgoingMessage ( KMPCommon id, byte data ) : void
id KMPCommon
data byte
return void

queueOutgoingMessage() public method

public queueOutgoingMessage ( byte message_bytes ) : void
message_bytes byte
return void

resetProperties() public method

public resetProperties ( ) : void
return void

sendOutgoingMessages() public method

public sendOutgoingMessages ( ) : void
return void

splitOutgoingMessage() public method

public splitOutgoingMessage ( byte &next_message ) : void
next_message byte
return void

updateActivityLevel() public method

public updateActivityLevel ( ActivityLevel level ) : void
level ActivityLevel
return void

updateReceiveTimestamp() public method

public updateReceiveTimestamp ( ) : void
return void

Property Details

activityLevel public_oe property

public ActivityLevel activityLevel
return ActivityLevel

activityLevelLock public_oe property

public object activityLevelLock
return object

averageWarpRate public_oe property

public float averageWarpRate
return float

clientIndex public_oe property

public int clientIndex
return int

connectionStartTime public_oe property

public long connectionStartTime
return long

currentBytesToReceive public_oe property

public int currentBytesToReceive
return int

currentMessage public_oe property

public byte[] currentMessage
return byte[]

currentMessageHeaderRecieved public_oe property

public bool currentMessageHeaderRecieved
return bool

currentMessageID public_oe property

public KMPCommon.ClientMessageID currentMessageID
return KMPCommon.ClientMessageID

currentSubspaceID public_oe property

public int currentSubspaceID
return int

currentVessel public_oe property

public Guid,System currentVessel
return System.Guid

disconnectMessage public_oe property

public string disconnectMessage
return string

enteredSubspaceAt public_oe property

public double enteredSubspaceAt
return double

guid public_oe property

public Guid,System guid
return System.Guid

hasReceivedScenarioModules public_oe property

public bool hasReceivedScenarioModules
return bool

lagWarning public_oe property

public int lagWarning
return int

lastInFlightActivityTime public_oe property

public long lastInFlightActivityTime
return long

lastInGameActivityTime public_oe property

public long lastInGameActivityTime
return long

lastPollTime public_oe property

public long lastPollTime
return long

lastReceiveTime public_oe property

public long lastReceiveTime
return long

lastSyncTime public_oe property

public long lastSyncTime
return long

lastTick public_oe property

public double lastTick
return double

lastUDPACKTime public_oe property

public long lastUDPACKTime
return long

playerID public_oe property

public int playerID
return int

queuedOutMessages public_oe property

public ConcurrentQueue queuedOutMessages
return ConcurrentQueue

queuedOutMessagesHighPriority public_oe property

public ConcurrentQueue queuedOutMessagesHighPriority
return ConcurrentQueue

queuedOutMessagesSplit public_oe property

public ConcurrentQueue queuedOutMessagesSplit
return ConcurrentQueue

receivedHandshake public_oe property

public bool receivedHandshake
return bool

screenshot public_oe property

public byte[] screenshot
return byte[]

screenshotLock public_oe property

public object screenshotLock
return object

sendOutgoingMessagesLock public_oe property

public object sendOutgoingMessagesLock
return object

sharedCraftFile public_oe property

public byte[] sharedCraftFile
return byte[]

sharedCraftLock public_oe property

public object sharedCraftLock
return object

sharedCraftName public_oe property

public String sharedCraftName
return String

sharedCraftType public_oe property

public KMPCommon.CraftType sharedCraftType
return KMPCommon.CraftType

syncOffset public_oe property

public double syncOffset
return double

tcpClient public_oe property

public TcpClient,System.Net.Sockets tcpClient
return System.Net.Sockets.TcpClient

tcpClientLock public_oe property

public object tcpClientLock
return object

timestampLock public_oe property

public object timestampLock
return object

username public_oe property

public String username
return String

warping public_oe property

public bool warping
return bool

watchPlayerName public_oe property

public String watchPlayerName
return String

watchPlayerNameLock public_oe property

public object watchPlayerNameLock
return object