hCommTCPSocket
Introductiona class that defines a TCP interface to a Hyperion Instrument Member Functions
closepublic Discussionclose the communication channel to the instrument. connectpublic Discussionopen a communication channel and establish a connection. Throws HyperionException on error. hCommTCPSocket(int, std :: string, std :: string)public ParametersDiscussionConstructor for hCommTCPSocket. This version takes an already initialized and valid socket number and binds the comm object to that. It can also optionally execute a command. hCommTCPSocket(std :: string, int, int)public ParametersDiscussionConstructor for hCommTCPSocket read_dataprivate ParametersReturn Valuereturns the number of bytes read, or -1 if there is an error DiscussionRead raw data back from a communication channel. set_timeoutpublic ParametersDiscussionset the timeout value in milliseconds for the specified channel. Throws HyperionException on error. write_dataprivate ParametersReturn ValueReturns number of bytes written if successful, -1 otherwise DiscussionWrite raw data to a communication channel ~hCommTCPSocketpublic DiscussionDestructor for hCommTCPSocket |