C# Class j64.AlarmServer.TPISocket

All communication with the TPI is handled via this class. It has the ability to send commands over the socket, monitor for responses being received from the TPI, and will also send a poll command to the TPI periodically so the connectino will not time out.
Afficher le fichier Open project: joejarvis64/j64.AlarmServer Class Usage Examples

Méthodes publiques

Méthode Description
Disconnect ( ) : void
ExecuteCommand ( TpiCommand tpiRequest ) : void

Send a command to the TPI. This method will issue a lock to prevent multiple threads from sending a command at the same time.

StartSocket ( ) : void

Begin a connection with the TPI and start listening for responses.

TPISocket ( ) : System

Constructor

Private Methods

Méthode Description
EnsureConnection ( ) : void
ListenForData ( ) : void

Listen for data coming from the TPI

PollTpi ( ) : void

Listen for data coming from the TPI

Method Details

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

ExecuteCommand() public méthode

Send a command to the TPI. This method will issue a lock to prevent multiple threads from sending a command at the same time.
public ExecuteCommand ( TpiCommand tpiRequest ) : void
tpiRequest TpiCommand
Résultat void

StartSocket() public méthode

Begin a connection with the TPI and start listening for responses.
public StartSocket ( ) : void
Résultat void

TPISocket() public méthode

Constructor
public TPISocket ( ) : System
Résultat System