C# 클래스 POLUtils.AuxSvc.AuxSvcConnection

Provides a stream that implements the AuxSvc protocol.
파일 보기 프로젝트 열기: polserver/poltools 1 사용 예제들

공개 메소드들

메소드 설명
AuxSvcConnection ( string server_ip, int server_port ) : System.IO

Creates an AuxSvc object against the specified socket to designated Server IP and Server Port. It then initializes and connects the AuxSocket and uses the AuxSocket to initialize the AuxStream for our Read/Write work.

Close ( ) : void

Closes all AuxSvcConnection related Streams. Can be used to manually kill an AuxSvcConnection if an error is encountered before using Write(). Will result in the AuxSvc Script in POL to exit the While(connection) Loop and terminate.

Read ( ) : string

Returns the current contents of the AuxStream in string format.

Write ( string input ) : bool

Attempts to send a string using the AuxWriter Stream. Returns a bool for success.

비공개 메소드들

메소드 설명
AuxSvcConnection ( ) : System.IO

The default constructor is marked as private to ensure the parameterized constructor is called.

메소드 상세

AuxSvcConnection() 공개 메소드

Creates an AuxSvc object against the specified socket to designated Server IP and Server Port. It then initializes and connects the AuxSocket and uses the AuxSocket to initialize the AuxStream for our Read/Write work.
public AuxSvcConnection ( string server_ip, int server_port ) : System.IO
server_ip string /// The ip that the AuxSvcStream will try to connect to. ///
server_port int /// The port that the AuxSvcStream will try to connect to. ///
리턴 System.IO

Close() 공개 메소드

Closes all AuxSvcConnection related Streams. Can be used to manually kill an AuxSvcConnection if an error is encountered before using Write(). Will result in the AuxSvc Script in POL to exit the While(connection) Loop and terminate.
public Close ( ) : void
리턴 void

Read() 공개 메소드

Returns the current contents of the AuxStream in string format.
public Read ( ) : string
리턴 string

Write() 공개 메소드

Attempts to send a string using the AuxWriter Stream. Returns a bool for success.
public Write ( string input ) : bool
input string /// The POL Style Packed string to send to the POL Server. ///
리턴 bool