com.upek.android.ptapi.callback
Interface PtCommCallback
public interface PtCommCallback
Interface with callback function that an application supplies to allow to send data
in the form of a sequence of packets to the remote instance of PTAPI library. This
is a blocking function, which does not return until the request is processed, or
a communication error is encountered.
commCallbackInvoke
byte[] commCallbackInvoke(byte[] inPkt)
throws PtException
- Parameters:
inPkt
- A pointer to a packet to be sent to the communicating partner. This
data is dynamically allocated and controlled by PTAPI, must not be freed
by the application.
- Returns:
- The packet received back from the communicating partner.
(Corresponds with parameter ppOutPkt in original function)
- Throws:
PtException
- Error code of fail, if any was occurred.