Package com.codename1.io.link
package com.codename1.io.link
Byte links to devices on a cable or the local network -- a serial port, a
TCP socket, a USB bulk endpoint -- behind one blocking interface, for the
protocol drivers of payment terminals, receipt printers and other
point-of-sale peripherals.
-
ClassesClassDescriptionA two-way byte connection to one device: a serial port, a TCP socket, a USB endpoint pair, or anything else with bytes in and out.Two links joined back to back in memory: what one writes the other reads.A serial port: an RS-232 cable, or a USB serial adapter the operating system presents as one (
COM3,/dev/ttyUSB0,/dev/ttyACM0).A link over a pair of streams that are already connected, such as a Bluetooth socket's.A TCP connection to a device on the local network: a receipt printer on port 9100, a ZVT or nexo terminal on its configured port.A USB device's bulk endpoints: a USB receipt printer, or a USB CDC device -- many payment terminals -- whose serial line settings do not matter.