hi, we need to check if a thermal printer (ip address on port 9100 tcp) is ready or not response... any suggest?? like as ping system?
objc ios check local ip response
Are you printing to the print directly, using networking APIs? Or via iOS’s printing system?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
directly using tcp api
In that case the only guaranteed way to know whether you can connect to a particular remote peer is to actually try the connection. Everything else is just a heuristic. For example, you could ping the remote peer using ICMP, but that can yield both false positives (the host might be online but no one is listening on the port) and false negatives (some networks block pings; some hosts don’t respond to pings).directly using tcp api
Can you explain more about the context here? The usual approach for printing is something like this:
User starts a print job.
You try connecting to the printer.
If that fails, you tell the user.
If it works, you print.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"