C# Class ArtemisComm.PacketProcessing

Inheritance: IDisposable
Afficher le fichier Open project: russjudge/ArtemisSBS-ProtocolSharp Class Usage Examples

Private Properties

Свойство Type Description
Dispose void
Enqueue void
EnqueuePacket void
EnqueueReceivedPacket void
EnqueueSpecificPacket void
Initialize void
ListenForConnections void
PacketProcessing ArtemisComm.ShipAction2SubPackets
QueueToPacketProcessor void
RaiseExceptionEncountered void
RaisePackageReceived void
RaiseSpecificPacketEvents void
StartServerConnection void
Subscribe void
Unsubscribe void
conn_BytesReceived void
conn_Connected void
conn_ConnectionLost void
conn_ExceptionEncountered void

Méthodes publiques

Méthode Description
Dispose ( ) : void
Send ( System.Guid connectionID, Packet packet ) : void
Send ( Packet packet ) : void
SendAudioCommandPacket ( System.Guid connectionID, int id, int playOrDismiss ) : void
SendCaptainSelectSubPacket ( System.Guid connectionID, int targetID ) : void
SendCommsOutgoingPacket ( System.Guid connectionID, int recipientType, int recipientID, int messageID, int targetObjectID, int unknown ) : void
SendConvertTorpedoSubPacket ( System.Guid connectionID, TorpedoEnergyConversionTypes direction ) : void
SendDiveRiseSubPacket ( System.Guid connectionID, int delta ) : void
SendEngSendDamconSubPacket ( System.Guid connectionID, int teamNumber, int x, int y, int z ) : void
SendEngSetAutoDamconSubPacket ( System.Guid connectionID, bool damComIsAutonomous ) : void
SendEngSetCoolantSubPacket ( System.Guid connectionID, ShipSystem system, int value ) : void
SendEngSetEnergySubPacket ( System.Guid connectionID, ShipSystem system, float value ) : void
SendFireTubeSubPacket ( System.Guid connectionID, int tubeIndex ) : void
SendGameMasterMessagePacket ( ) : void
SendHelmJumpSubPacket ( System.Guid connectionID, float bearing, float distance ) : void
SendHelmRequestDockSubPacket ( System.Guid connectionID ) : void
SendHelmSetImpulseSubPacket ( System.Guid connectionID, float velocity ) : void
SendHelmSetSteeringSubPacket ( System.Guid connectionID, float turnValue ) : void
SendHelmSetWarpSubPacket ( System.Guid connectionID, int warpFactor ) : void
SendHelmToggleReverseSubPacket ( System.Guid connectionID ) : void
SendLoadTubeSubPacket ( System.Guid connectionID, int tubeIndex, OrdinanceType ordinance ) : void
SendReady2SubPacket ( System.Guid connectionID ) : void
SendReadySubPacket ( System.Guid connectionID ) : void
SendSciScanSubPacket ( System.Guid connectionID, int targetID ) : void
SendSciSelectSubPacket ( System.Guid connectionID, int targetID ) : void
SendSetBeamFreqSubPacket ( System.Guid connectionID, BeamFrequencyTypes frequencyIndex ) : void
SendSetMainScreenSubPacket ( System.Guid connectionID, MainScreenViewTypes value ) : void
SendSetShipSettingsSubPacket ( System.Guid connectionID, DriveType drive, int shipType, int unknown, string shipName ) : void
SendSetShipSubPacket ( System.Guid connectionID, int selectedShip ) : void

Sends the set ship sub packet.

SendSetShipSubPacket ( int selectedShip ) : void
SendSetStationSubPacket ( System.Guid connectionID, StationType station, bool isSelected ) : void
SendSetWeaponsTargetSubPacket ( System.Guid connectionID, int tubeIndex ) : void
SendToggleAutoBeamsSubPacket ( System.Guid connectionID ) : void
SendTogglePerspectiveSubPacket ( System.Guid connectionID ) : void
SendToggleRedAlert ( System.Guid connectionID ) : void
SendToggleShields ( System.Guid connectionID ) : void
SendUnloadTubeSubPacket ( System.Guid connectionID, int tubeIndex ) : void
SetPort ( int port ) : void
SetServerHost ( string host ) : void
StartClientConnection ( TcpClient client ) : void
StartClientListener ( ) : void

Méthodes protégées

Méthode Description
OnEvent ( EventHandler handler, ConnectionEventArgs e ) : void
OnEvent ( EventHandler handler, ExceptionEventArgs e ) : void
OnEvent ( EventHandler handler, PackageEventArgs e ) : void

Private Methods

Méthode Description
Dispose ( bool Disposing ) : void
Enqueue ( Stream stream, System.Guid ID ) : void
EnqueuePacket ( Queue que, PackageEventArgs pea, ManualResetEvent mre ) : void
EnqueueReceivedPacket ( PackageEventArgs pea ) : void
EnqueueSpecificPacket ( PackageEventArgs pea ) : void
Initialize ( ) : void
ListenForConnections ( ) : void
PacketProcessing ( ) : ArtemisComm.ShipAction2SubPackets
QueueToPacketProcessor ( ) : void
RaiseExceptionEncountered ( Exception e, System.Guid id ) : void
RaisePackageReceived ( ) : void
RaiseSpecificPacketEvents ( ) : void
StartServerConnection ( ) : void
Subscribe ( Connector conn ) : void
Unsubscribe ( Connector conn ) : void
conn_BytesReceived ( object sender, BytesReceivedEventArgs e ) : void
conn_Connected ( object sender, ConnectionEventArgs e ) : void
conn_ConnectionLost ( object sender, ConnectionEventArgs e ) : void
conn_ExceptionEncountered ( object sender, ExceptionEventArgs e ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

OnEvent() protected méthode

protected OnEvent ( EventHandler handler, ConnectionEventArgs e ) : void
handler EventHandler
e ConnectionEventArgs
Résultat void

OnEvent() protected méthode

protected OnEvent ( EventHandler handler, ExceptionEventArgs e ) : void
handler EventHandler
e ExceptionEventArgs
Résultat void

OnEvent() protected méthode

protected OnEvent ( EventHandler handler, PackageEventArgs e ) : void
handler EventHandler
e PackageEventArgs
Résultat void

Send() public méthode

public Send ( System.Guid connectionID, Packet packet ) : void
connectionID System.Guid
packet Packet
Résultat void

Send() public méthode

public Send ( Packet packet ) : void
packet Packet
Résultat void

SendAudioCommandPacket() public méthode

public SendAudioCommandPacket ( System.Guid connectionID, int id, int playOrDismiss ) : void
connectionID System.Guid
id int
playOrDismiss int
Résultat void

SendCaptainSelectSubPacket() public méthode

public SendCaptainSelectSubPacket ( System.Guid connectionID, int targetID ) : void
connectionID System.Guid
targetID int
Résultat void

SendCommsOutgoingPacket() public méthode

public SendCommsOutgoingPacket ( System.Guid connectionID, int recipientType, int recipientID, int messageID, int targetObjectID, int unknown ) : void
connectionID System.Guid
recipientType int
recipientID int
messageID int
targetObjectID int
unknown int
Résultat void

SendConvertTorpedoSubPacket() public méthode

public SendConvertTorpedoSubPacket ( System.Guid connectionID, TorpedoEnergyConversionTypes direction ) : void
connectionID System.Guid
direction TorpedoEnergyConversionTypes
Résultat void

SendDiveRiseSubPacket() public méthode

public SendDiveRiseSubPacket ( System.Guid connectionID, int delta ) : void
connectionID System.Guid
delta int
Résultat void

SendEngSendDamconSubPacket() public méthode

public SendEngSendDamconSubPacket ( System.Guid connectionID, int teamNumber, int x, int y, int z ) : void
connectionID System.Guid
teamNumber int
x int
y int
z int
Résultat void

SendEngSetAutoDamconSubPacket() public méthode

public SendEngSetAutoDamconSubPacket ( System.Guid connectionID, bool damComIsAutonomous ) : void
connectionID System.Guid
damComIsAutonomous bool
Résultat void

SendEngSetCoolantSubPacket() public méthode

public SendEngSetCoolantSubPacket ( System.Guid connectionID, ShipSystem system, int value ) : void
connectionID System.Guid
system ShipSystem
value int
Résultat void

SendEngSetEnergySubPacket() public méthode

public SendEngSetEnergySubPacket ( System.Guid connectionID, ShipSystem system, float value ) : void
connectionID System.Guid
system ShipSystem
value float
Résultat void

SendFireTubeSubPacket() public méthode

public SendFireTubeSubPacket ( System.Guid connectionID, int tubeIndex ) : void
connectionID System.Guid
tubeIndex int
Résultat void

SendGameMasterMessagePacket() public méthode

public SendGameMasterMessagePacket ( ) : void
Résultat void

SendHelmJumpSubPacket() public méthode

public SendHelmJumpSubPacket ( System.Guid connectionID, float bearing, float distance ) : void
connectionID System.Guid
bearing float
distance float
Résultat void

SendHelmRequestDockSubPacket() public méthode

public SendHelmRequestDockSubPacket ( System.Guid connectionID ) : void
connectionID System.Guid
Résultat void

SendHelmSetImpulseSubPacket() public méthode

public SendHelmSetImpulseSubPacket ( System.Guid connectionID, float velocity ) : void
connectionID System.Guid
velocity float
Résultat void

SendHelmSetSteeringSubPacket() public méthode

public SendHelmSetSteeringSubPacket ( System.Guid connectionID, float turnValue ) : void
connectionID System.Guid
turnValue float
Résultat void

SendHelmSetWarpSubPacket() public méthode

public SendHelmSetWarpSubPacket ( System.Guid connectionID, int warpFactor ) : void
connectionID System.Guid
warpFactor int
Résultat void

SendHelmToggleReverseSubPacket() public méthode

public SendHelmToggleReverseSubPacket ( System.Guid connectionID ) : void
connectionID System.Guid
Résultat void

SendLoadTubeSubPacket() public méthode

public SendLoadTubeSubPacket ( System.Guid connectionID, int tubeIndex, OrdinanceType ordinance ) : void
connectionID System.Guid
tubeIndex int
ordinance OrdinanceType
Résultat void

SendReady2SubPacket() public méthode

public SendReady2SubPacket ( System.Guid connectionID ) : void
connectionID System.Guid
Résultat void

SendReadySubPacket() public méthode

public SendReadySubPacket ( System.Guid connectionID ) : void
connectionID System.Guid
Résultat void

SendSciScanSubPacket() public méthode

public SendSciScanSubPacket ( System.Guid connectionID, int targetID ) : void
connectionID System.Guid
targetID int
Résultat void

SendSciSelectSubPacket() public méthode

public SendSciSelectSubPacket ( System.Guid connectionID, int targetID ) : void
connectionID System.Guid
targetID int
Résultat void

SendSetBeamFreqSubPacket() public méthode

public SendSetBeamFreqSubPacket ( System.Guid connectionID, BeamFrequencyTypes frequencyIndex ) : void
connectionID System.Guid
frequencyIndex BeamFrequencyTypes
Résultat void

SendSetMainScreenSubPacket() public méthode

public SendSetMainScreenSubPacket ( System.Guid connectionID, MainScreenViewTypes value ) : void
connectionID System.Guid
value MainScreenViewTypes
Résultat void

SendSetShipSettingsSubPacket() public méthode

public SendSetShipSettingsSubPacket ( System.Guid connectionID, DriveType drive, int shipType, int unknown, string shipName ) : void
connectionID System.Guid
drive DriveType
shipType int
unknown int
shipName string
Résultat void

SendSetShipSubPacket() public méthode

Sends the set ship sub packet.
public SendSetShipSubPacket ( System.Guid connectionID, int selectedShip ) : void
connectionID System.Guid The connection identifier.
selectedShip int The selected ship. (1-based)
Résultat void

SendSetShipSubPacket() public méthode

public SendSetShipSubPacket ( int selectedShip ) : void
selectedShip int
Résultat void

SendSetStationSubPacket() public méthode

public SendSetStationSubPacket ( System.Guid connectionID, StationType station, bool isSelected ) : void
connectionID System.Guid
station StationType
isSelected bool
Résultat void

SendSetWeaponsTargetSubPacket() public méthode

public SendSetWeaponsTargetSubPacket ( System.Guid connectionID, int tubeIndex ) : void
connectionID System.Guid
tubeIndex int
Résultat void

SendToggleAutoBeamsSubPacket() public méthode

public SendToggleAutoBeamsSubPacket ( System.Guid connectionID ) : void
connectionID System.Guid
Résultat void

SendTogglePerspectiveSubPacket() public méthode

public SendTogglePerspectiveSubPacket ( System.Guid connectionID ) : void
connectionID System.Guid
Résultat void

SendToggleRedAlert() public méthode

public SendToggleRedAlert ( System.Guid connectionID ) : void
connectionID System.Guid
Résultat void

SendToggleShields() public méthode

public SendToggleShields ( System.Guid connectionID ) : void
connectionID System.Guid
Résultat void

SendUnloadTubeSubPacket() public méthode

public SendUnloadTubeSubPacket ( System.Guid connectionID, int tubeIndex ) : void
connectionID System.Guid
tubeIndex int
Résultat void

SetPort() public méthode

public SetPort ( int port ) : void
port int
Résultat void

SetServerHost() public méthode

public SetServerHost ( string host ) : void
host string
Résultat void

StartClientConnection() public méthode

public StartClientConnection ( TcpClient client ) : void
client System.Net.Sockets.TcpClient
Résultat void

StartClientListener() public méthode

public StartClientListener ( ) : void
Résultat void