communication with a java applet

Boris Huart boris.huart at mathworks.fr
Tue Mar 26 13:16:10 EST 2002


Hi Giles,

Thanks a lot for your help, I take the liberty to save your adress in case it doesn't work
out ;). Thanks again,

Bye,

Boris

Giles Brown wrote:

> Looping <looping002 at hotmail.com> wrote in message news:<3C9F100D.BAB4F24D at hotmail.com>...
> > Hi all,
> >
> > I am trying to make a real-time system communicate with a java applet
> > under IE 5.5. I only have a pyd file (Python 1.5.2) to get the floats
> > calculated on the platform and I wonder how to make the platform
> > communicate with my java applet : TCP/IP, CORBA, shared memory,
> > others... ?
> >
> > Thanks in advance for any advices,
>
> Its relatively straightforward to get Python and Java to talk over
> sockets.
> If you want to send data in a binary format then on the Python side of
> things there is the "xdrlib" (I'm assuming this was present in Python
> 1.5.2 as I don't have 1.5.2 installed anymore).  On the Java side
> you'd want to get hold of a DataInputStream (or DataOutputStream).
> Something like:
>
> DataInputStream dis = new DataInputStream(mySocket.getInputStream()) ;
> double nextValue = dis.readDouble() ;
>
> Good luck,
> Giles

--
Sinceres salutations,

Boris HUART                        [mailto:boris.huart at mathworks.fr]

____________________________________________________________________

  The MathWorks Consulting      Tel : 01 55 64 06 63
                                Fax : 01 55 64 06 64
  20 rue Troyon               Email : mailto:consulting at mathworks.fr
  92316 Sevres Cedex, France    Web : http://www.mathworks.fr
____________________________________________________________________





More information about the Python-list mailing list