[IO] Communication between Java and Python
Ype Kingma
ykingma at accessforall.nl
Mon Nov 19 14:39:59 EST 2001
"Christof Hurst (FZK)" wrote:
>
> i want to send data between a Java-Applet and a python servlet.
> how do i get a Connection and how do i send values?
> is there a possibility to send binary streams or integer-values?
> i want to send in both ways.
Use sockets. See the socket howto for the python side:
http://py-howto.sourceforge.net/sockets/sockets.html
For java use the docs of java.net.socket.
Basically your servlet will listen for connections requested
from the applet. On this connection you can do a two way
communication. You could use netstrings as messages on
this connection.
Good luck,
Ype
--
email at xs4all.nl
More information about the Python-list
mailing list