smitchel wrote:
I wrote an emacs macro to get input then send it to a Zebra 105-sl
label
printer.
I need it to get some data from a counting scale as well.
Both the counting scale and the Zebra printer have ip addresses on my
network.
Both have a simple web server that can be accessed by typing the ip
address in a browser's URL bar.
The Zebra at least supports telnet as well (and half a dozen other
protocols--I have a list).
I will be using this on Slackware, SLAMD64, and Windows (if possible).
The programming language of the printer is all ascii text, so maybe 20
lines of text needs to be sent.
How do you get Xemacs to send ascii text data to a printer that has an
IP address?
How can you read text from a scale that is on the network?
You can make TCP connections using open-network-stream. Data is sent
using process-send-string, and can be received via the process' filter
function (see set-process-filter) or appended to a buffer.
But if the device speaks HTTP, you may be better off using
url-retrieve.
Backing up a step, how do you get Linux to do that without doing it
in
Xemacs? I don't know.
BSD sockets. See the socket(2) and connect(2) manual pages.
Are there packages or examples to do this? I'm willing to do the
research, but need
help getting pointed in the right direction.
M-x igrep-find RET open-network-stream RET /usr/lib/xemacs/*.el RET
--
Glynn Clements <glynn(a)gclements.plus.com>
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta