Hi,
I would like to get back my object in my android application, this object
is sent over udp from a native android application coded in C and running
on the same device that the Android application.
Here what I've done :
*MyClass myData = new MyClass();*
*byte[] buf = new byte[10000];*
*DatagramSocket socket = new DatagramSocket(null);*
*socket.setReuseAddress(true);*
*socket.bind(new InetSocketAddress("127.0.0.1", SERVERPORT));*
*DatagramPacket packet = new DatagramPacket(buf, buf.length);*
*socket.receive(packet); *
I've also made the java class which fits the C structure that I send.
My question is, how to get back the data ? and how to set the correct size
of the buffer ? because it changes on the time, so I would like to fix him
with the max size
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en