C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
EnsureConnection ( ) : void
ListenForData ( ) : void

Listen for data coming from the TPI

PollTpi ( ) : void

Listen for data coming from the TPI

Описание методов

Disconnect() публичный Метод

public Disconnect ( ) : void
Результат void

ExecuteCommand() публичный Метод

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
Результат void

StartSocket() публичный Метод

Begin a connection with the TPI and start listening for responses.
public StartSocket ( ) : void
Результат void

TPISocket() публичный Метод

Constructor
public TPISocket ( ) : System
Результат System