Unable to render embedded object: File (books.jpg) not found.
Go to documentation repository
Page History
The library is designed for integration of POS software (working on Windows) with the POS-Intellect system. It hides code of providing TCP/IP communication from programmers. For example, it's possible to resend data to network using TCP/IP protocol by some modifications of program code if there is code of data sending to receipt printer.
Library functions:
- void __stdcall Open (LPCTSTR id,LPCTSTR ip_address,DWORD port) – is called at the beginning of working with library, initiates connection setup
- ip_address – server address
- port – connection port
- void __stdcall Close (LPCTSTR id) – is called at the end of working with library
- void __stdcall Send(LPCTSTR id,LPCTSTR str)
- str – sending message to system.
General parameter LPCTSTR id for all functions is a connection identifier. It's allowable to have several connections with different servers recognizing them by this identifier.
When calling the Open method, the library is connecting using TCP/IP and restoring connection if it was lost. All callings are asynchronous and they don't have an impact to the main flow. Data are sending from a separate flow. All used methods are thread-safe.
When calling the Send method, data will be send if connection established and won't be send if connection lost. There is no any confirmation of successful/failed data sending.
It's required to specify type of TCP/IP connection and enter a port number specified as method of Open function on the settings panel of the POS-terminal object of the POS-Intellect system.