IPC Socket Interface

IPC application listens on a TCP/IP port number for transaction requests . IPC application can send the receipt data and GUI (Window) message to TCP/IP port. IPC application opens all sockets in Server mode. The EPOS application should open the relevant sockets in Client mode. Please see theIPC console Message to socket interfacefor GUI messages on TCP/IP port.

The EPOS application should first establish a connection with the IPC application (e.g. request port 10000) and then send a transaction request.

IPC responds on the same connection to the transaction request e.g. if the transaction request is sent on socket 10000 to IPC by the EPOS application, IPC will send the transaction response back on the same socket.

The request message has the same format as the INPUT.TXT file and similarly the response message has the same format as the OUTPUT.TXT file.

Note: From IPC2 2.2.5 and all later versions a change has been introduced in the way IPC2 accepts socket connections. (This change also applies to IPC2 2.2.4 patch 2)

The maximum socket connection limit is now 50. If this limit is exceeded IPC will not accept transaction requests on the new socket connection. Where the POS application periodically opens a new socket connection to IPC, for example, opening a new connection with every transaction, it is recommended that a graceful close of old socket connections is completed before opening new ones. Failure to do so would cause the 50 socket connections limit to be reached, and IPC would then refuse transactions requests on the subsequent connections.