C# Class IMB3.TConnection

Inheritance: TConnectionPlatform
Afficher le fichier Open project: TNOCS/csTouch Class Usage Examples

Méthodes publiques

Свойство Type Description
AutoPublish bool
efPublishers System.Int32
efSubscribers System.Int32
efTimers System.Int32
statusBusy System.Int32
statusCalculating System.Int32
statusReady System.Int32

Méthodes publiques

Méthode Description
Close ( ) : void
ConvertEscapes ( byte aBuffer ) : string
ConvertToHex ( byte aBuffer ) : string
LogWriteLn ( string aLogEventName, string aLine, TEventEntry aLevel ) : int
Open ( string aHost, int aPort, bool aStartReadingThread = true ) : bool
Publish ( string aEventName, bool aUseFederationPrefix = true ) : TEventEntry
RemoveStatus ( ) : void
RequestAllVariablesFromImb ( ) : void
RequestEventname ( string aEventNameFilter, Int32 aEventFilters ) : int
SetState ( TConnectionState aState ) : void
SetThrottle ( Int32 aThrottle ) : void
SetVariableValue ( string aVarName, TByteBuffer aVarValue ) : void
SetVariableValue ( string aVarName, TByteBuffer aVarValue, TVarPrefix aVarPrefix ) : void
SetVariableValue ( string aVarName, string aVarValue ) : void
SetVariableValue ( string aVarName, string aVarValue, TVarPrefix aVarPrefix ) : void
SignalBuffer ( int aEventID, Int32 aBufferID, byte aBuffer, Int32 aEventFlags ) : int
SignalBuffer ( string aEventName, Int32 aBufferID, byte aBuffer, Int32 aEventFlags, bool aUseFederationPrefix = true ) : int
SignalChangeFederation ( Int32 aNewFederationID, string aNewFederation ) : int
SignalChangeObject ( int aEventID, Int32 aAction, Int32 aObjectID, string aAttribute = "" ) : int
SignalChangeObject ( string aEventName, Int32 aAction, Int32 aObjectID, string aAttribute = "", bool aUseFederationPrefix = true ) : int
SignalEvent ( int aEventID, TEventEntry aEventKind, TByteBuffer aEventPayload, bool aUseFederationPrefix = true ) : int
SignalEvent ( string aEventName, TEventEntry aEventKind, TByteBuffer aEventPayload, bool aUseFederationPrefix = true ) : int
SignalFocus ( double aX, double aY ) : int
SignalIntString ( string eventName, int cmd, string message ) : int
SignalStream ( int aEventID, string aStreamName, Stream aStream ) : int
SignalStream ( string aEventName, string aStreamName, Stream aStream, bool aUseFederationPrefix = true ) : int
SignalString ( string eventName, string message ) : int
Subscribe ( string aEventName, bool aUseFederationPrefix = true ) : TEventEntry
TConnection ( string aHost, int aPort, string aOwnerName, int aOwnerID, string aFederation = DefaultFederation, bool aIMB2Compatible = true, bool aStartReadingThread = true ) : System
UnPublish ( string aEventName, bool aUseFederationPrefix = true ) : void
UnSubscribe ( string aEventName, bool aUseFederationPrefix = true ) : void
UpdateStatus ( Int32 aProgress, Int32 aStatus ) : void

Méthodes protégées

Méthode Description
HandleCommand ( TCommands aCommand, TByteBuffer aPayload ) : void

Private Methods

Méthode Description
AddEvent ( string aEventName ) : TEventEntry
AddEventL ( string aEventName ) : TEventEntry
EventIDToEventL ( Int32 aEventID ) : TEventEntry
FindEventAutoPublishL ( string aEventName ) : TEventEntry
FindEventL ( string aEventName ) : TEventEntry
FindEventParentL ( string aEventName ) : TEventEntry
FindOrAddEventL ( string aEventName ) : TEventEntry
GetUniqueClientID ( ) : int
HandleCommandEvent ( TByteBuffer aPayload ) : void
HandleCommandOther ( TCommands aCommand, TByteBuffer aPayload ) : void
HandleCommandVariable ( TByteBuffer aPayload ) : void
HandleEventNames ( TByteBuffer aPayload ) : void
HandleSubAndPub ( TCommands aCommand, TByteBuffer aPayload ) : void
PrefixFederation ( string aName, bool aUseFederationPrefix = true ) : string
RequestUniqueClientID ( ) : int
SetOwner ( ) : int
WriteCommand ( TCommands aCommand, byte aPayload ) : int

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

ConvertEscapes() public static méthode

public static ConvertEscapes ( byte aBuffer ) : string
aBuffer byte
Résultat string

ConvertToHex() public static méthode

public static ConvertToHex ( byte aBuffer ) : string
aBuffer byte
Résultat string

HandleCommand() protected méthode

protected HandleCommand ( TCommands aCommand, TByteBuffer aPayload ) : void
aCommand TCommands
aPayload IMB3.ByteBuffers.TByteBuffer
Résultat void

LogWriteLn() public méthode

public LogWriteLn ( string aLogEventName, string aLine, TEventEntry aLevel ) : int
aLogEventName string
aLine string
aLevel TEventEntry
Résultat int

Open() public méthode

public Open ( string aHost, int aPort, bool aStartReadingThread = true ) : bool
aHost string
aPort int
aStartReadingThread bool
Résultat bool

Publish() public méthode

public Publish ( string aEventName, bool aUseFederationPrefix = true ) : TEventEntry
aEventName string
aUseFederationPrefix bool
Résultat TEventEntry

RemoveStatus() public méthode

public RemoveStatus ( ) : void
Résultat void

RequestAllVariablesFromImb() public méthode

public RequestAllVariablesFromImb ( ) : void
Résultat void

RequestEventname() public méthode

public RequestEventname ( string aEventNameFilter, Int32 aEventFilters ) : int
aEventNameFilter string
aEventFilters System.Int32
Résultat int

SetState() public méthode

public SetState ( TConnectionState aState ) : void
aState TConnectionState
Résultat void

SetThrottle() public méthode

public SetThrottle ( Int32 aThrottle ) : void
aThrottle System.Int32
Résultat void

SetVariableValue() public méthode

public SetVariableValue ( string aVarName, TByteBuffer aVarValue ) : void
aVarName string
aVarValue IMB3.ByteBuffers.TByteBuffer
Résultat void

SetVariableValue() public méthode

public SetVariableValue ( string aVarName, TByteBuffer aVarValue, TVarPrefix aVarPrefix ) : void
aVarName string
aVarValue IMB3.ByteBuffers.TByteBuffer
aVarPrefix TVarPrefix
Résultat void

SetVariableValue() public méthode

public SetVariableValue ( string aVarName, string aVarValue ) : void
aVarName string
aVarValue string
Résultat void

SetVariableValue() public méthode

public SetVariableValue ( string aVarName, string aVarValue, TVarPrefix aVarPrefix ) : void
aVarName string
aVarValue string
aVarPrefix TVarPrefix
Résultat void

SignalBuffer() public méthode

public SignalBuffer ( int aEventID, Int32 aBufferID, byte aBuffer, Int32 aEventFlags ) : int
aEventID int
aBufferID System.Int32
aBuffer byte
aEventFlags System.Int32
Résultat int

SignalBuffer() public méthode

public SignalBuffer ( string aEventName, Int32 aBufferID, byte aBuffer, Int32 aEventFlags, bool aUseFederationPrefix = true ) : int
aEventName string
aBufferID System.Int32
aBuffer byte
aEventFlags System.Int32
aUseFederationPrefix bool
Résultat int

SignalChangeFederation() public méthode

public SignalChangeFederation ( Int32 aNewFederationID, string aNewFederation ) : int
aNewFederationID System.Int32
aNewFederation string
Résultat int

SignalChangeObject() public méthode

public SignalChangeObject ( int aEventID, Int32 aAction, Int32 aObjectID, string aAttribute = "" ) : int
aEventID int
aAction System.Int32
aObjectID System.Int32
aAttribute string
Résultat int

SignalChangeObject() public méthode

public SignalChangeObject ( string aEventName, Int32 aAction, Int32 aObjectID, string aAttribute = "", bool aUseFederationPrefix = true ) : int
aEventName string
aAction System.Int32
aObjectID System.Int32
aAttribute string
aUseFederationPrefix bool
Résultat int

SignalEvent() public méthode

public SignalEvent ( int aEventID, TEventEntry aEventKind, TByteBuffer aEventPayload, bool aUseFederationPrefix = true ) : int
aEventID int
aEventKind TEventEntry
aEventPayload IMB3.ByteBuffers.TByteBuffer
aUseFederationPrefix bool
Résultat int

SignalEvent() public méthode

public SignalEvent ( string aEventName, TEventEntry aEventKind, TByteBuffer aEventPayload, bool aUseFederationPrefix = true ) : int
aEventName string
aEventKind TEventEntry
aEventPayload IMB3.ByteBuffers.TByteBuffer
aUseFederationPrefix bool
Résultat int

SignalFocus() public méthode

public SignalFocus ( double aX, double aY ) : int
aX double
aY double
Résultat int

SignalIntString() public méthode

public SignalIntString ( string eventName, int cmd, string message ) : int
eventName string
cmd int
message string
Résultat int

SignalStream() public méthode

public SignalStream ( int aEventID, string aStreamName, Stream aStream ) : int
aEventID int
aStreamName string
aStream Stream
Résultat int

SignalStream() public méthode

public SignalStream ( string aEventName, string aStreamName, Stream aStream, bool aUseFederationPrefix = true ) : int
aEventName string
aStreamName string
aStream Stream
aUseFederationPrefix bool
Résultat int

SignalString() public méthode

public SignalString ( string eventName, string message ) : int
eventName string
message string
Résultat int

Subscribe() public méthode

public Subscribe ( string aEventName, bool aUseFederationPrefix = true ) : TEventEntry
aEventName string
aUseFederationPrefix bool
Résultat TEventEntry

TConnection() public méthode

public TConnection ( string aHost, int aPort, string aOwnerName, int aOwnerID, string aFederation = DefaultFederation, bool aIMB2Compatible = true, bool aStartReadingThread = true ) : System
aHost string
aPort int
aOwnerName string
aOwnerID int
aFederation string
aIMB2Compatible bool
aStartReadingThread bool
Résultat System

UnPublish() public méthode

public UnPublish ( string aEventName, bool aUseFederationPrefix = true ) : void
aEventName string
aUseFederationPrefix bool
Résultat void

UnSubscribe() public méthode

public UnSubscribe ( string aEventName, bool aUseFederationPrefix = true ) : void
aEventName string
aUseFederationPrefix bool
Résultat void

UpdateStatus() public méthode

public UpdateStatus ( Int32 aProgress, Int32 aStatus ) : void
aProgress System.Int32
aStatus System.Int32
Résultat void

Property Details

AutoPublish public_oe property

public bool AutoPublish
Résultat bool

efPublishers public_oe property

public Int32,System efPublishers
Résultat System.Int32

efSubscribers public_oe property

public Int32,System efSubscribers
Résultat System.Int32

efTimers public_oe property

public Int32,System efTimers
Résultat System.Int32

statusBusy public_oe static_oe property

public static Int32,System statusBusy
Résultat System.Int32

statusCalculating public_oe static_oe property

public static Int32,System statusCalculating
Résultat System.Int32

statusReady public_oe static_oe property

public static Int32,System statusReady
Résultat System.Int32