Controller object of x4Trace. Represents every basic functions to communicate with server.
More...
|
void | OnRemoteCommandReceived (Ix4Trace.Messages.RemoteCommand remoteControl) |
| Fires remote command received event.
|
|
void | OnMessageReceived (Ix4Trace.Messages.Message message) |
| Fires message arrived from server event.
|
|
void | OnEventReceived (Ix4Trace.Messages.Event evt) |
| Fires event received event.
|
|
void | OnDisconnected () |
| Fires disconnected from server event.
|
|
void | OnReconnect () |
| Fires reconnect event.
|
|
void | OnReconnected () |
| Fires reconnected event.
|
|
|
ReconnectEvent | ReconnectEvent = null |
| Event of reconnect.
|
|
ReconnectedEvent | ReconnectedEvent = null |
| Event of reconnected.
|
|
EventReceived | EventReceived = null |
| Event of received an event of server.
|
|
MessageReceived | MessageReceived = null |
| Event of message arrived from server.
|
|
RemoteControlReceived | RemoteCommandReceived = null |
| Event of recore command received from server.
|
|
Disconnected | Disconnected |
| Event of connection is disconnected.
|
|
Controller object of x4Trace. Represents every basic functions to communicate with server.
◆ Controller()
Ix4Trace.Engine.Controller.Controller |
( |
string | ipAddress, |
|
|
int | port ) |
Constructor.
- Parameters
-
ipAddress | Address of server. |
port | TCP port of server. |
◆ Connect()
virtual bool Ix4Trace.Engine.Controller.Connect |
( |
| ) |
|
|
virtual |
Connects to server.
- Returns
- True when the connection is successful.
◆ GetUpdateFile()
virtual byte[] Ix4Trace.Engine.Controller.GetUpdateFile |
( |
string | file | ) |
|
|
virtual |
Returns the file for update.
- Parameters
-
- Returns
- The file.
◆ GetUpdateFileNames()
virtual string[] Ix4Trace.Engine.Controller.GetUpdateFileNames |
( |
| ) |
|
|
virtual |
Returns the update file names.
- Returns
- Name of files.
◆ HasTerminalData()
bool Ix4Trace.Engine.Controller.HasTerminalData |
( |
| ) |
|
The controllser has terminal data.
- Returns
- True whe has.
◆ Initialize()
Initializes the controller.
- Parameters
-
serializationType | Type of serialization of communication. |
◆ LoadPlugins()
virtual List< Assembly > Ix4Trace.Engine.Controller.LoadPlugins |
( |
| ) |
|
|
virtual |
Loads the plugins.
- Returns
◆ NeedUpdate()
virtual bool Ix4Trace.Engine.Controller.NeedUpdate |
( |
| ) |
|
|
virtual |
Returns true when system needs update.
- Returns
- True when needs update.
◆ OnEventReceived()
void Ix4Trace.Engine.Controller.OnEventReceived |
( |
Ix4Trace.Messages.Event | evt | ) |
|
|
protected |
Fires event received event.
- Parameters
-
◆ OnMessageReceived()
void Ix4Trace.Engine.Controller.OnMessageReceived |
( |
Ix4Trace.Messages.Message | message | ) |
|
|
protected |
Fires message arrived from server event.
- Parameters
-
message | Message from server. |
◆ OnRemoteCommandReceived()
void Ix4Trace.Engine.Controller.OnRemoteCommandReceived |
( |
Ix4Trace.Messages.RemoteCommand | remoteControl | ) |
|
|
protected |
Fires remote command received event.
- Parameters
-
◆ SendASyncMessage()
virtual void Ix4Trace.Engine.Controller.SendASyncMessage |
( |
Ix4Trace.Messages.Message | msg | ) |
|
|
virtual |
Sends async message to server.
- Parameters
-
◆ SendSyncMessage()
virtual Ix4Trace.Messages.Message Ix4Trace.Engine.Controller.SendSyncMessage |
( |
Ix4Trace.Messages.SyncMessage | msg | ) |
|
|
virtual |
Sends sync message to server.
- Parameters
-
- Returns
- The response from server.
The documentation for this class was generated from the following file:
- Z:/x4t/src/Ix4Trace/Controller.cs