EasyManuals Logo

VeriFone e355 User Manual

VeriFone e355
78 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #20 background imageLoading...
Page #20 background image
ARCHITECTURE
read()
20 E355/E265 USER AND BEST PRACTICES GUIDE
read()
This copies message-based data (header, data, CRC) received from the
communication port to the given buffer. The actual number of bytes copied may be
less than the requested count. In e355, the receive data logic drops packets larger
than 1024 bytes for iOS devices and 2048 bytes for Android and Windows
devices.
The Rx message packets are first put into a FIFO of up to 7 message packets and
a kernel task routes the message packets to the correct device port buffers. It is
possible, but unlikely that the kernel task can't keep up with the incoming packets.
If the FIFO overflows, the entire message packet is dropped. When packets are
internally dropped, log messages are generated. The end-to-end request/
response handshaking normally prevents buffer overflows.
The read function returns a complete message that is aligned on packet
boundaries. The communication port driver does a CRC checksum on the data to
assure integrity, but, it does not guarantee delivery.
Prototype int read(int handle, char *buffer, int count);
Parameters
Return Values Returns the number of bytes read, or -1 if an error occurred.
handle The handle returned for the device by the open() call.
buffer The buffer from which to copy the data.
count The maximum number of bytes requested.

Table of Contents

Other manuals for VeriFone e355

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the VeriFone e355 and is the answer not in the manual?

VeriFone e355 Specifications

General IconGeneral
BrandVeriFone
Modele355
CategoryPayment Terminal
LanguageEnglish

Related product manuals