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.
파일 보기 프로젝트 열기: joejarvis64/j64.AlarmServer 1 사용 예제들

공개 메소드들

메소드 설명
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