Documentation for POS PSIM 1.0.1.

Previous page COM. Library for working with TCP/IP connection  DLL. Library for working with TCP/IP connection Next page

The library is designed for integration of POS software (working on Windows OS) with the POS PSIM 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 provides ActiveX component which is possible to use from some space supporting ActiveX technology (e.g. Visual Basic, Delphi, 1S).

Attention!

It's required to register the regsvr32.exe posx.ocx library previously.

Used methods:

  1. Open(BSTR ip_address,DWORD port) - is called at the beginning of working with library, initiates connection setup
    1.  ip_address – server address
    2.  port – connection port
  2. Send(BSTR str);
    1.  str – sending message to system
  3. Close() - is called at the end of working with library

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 PSIM system.

  • No labels