....
xxxaaaaThis is a greeting.
where:
xxx - message type (3 bytes, text)
aaaa - integer, 4 bytes, length of text
'This is a greeting.' - the actual text
....
There's no reason to use the NDK for this,
The standard Java socket API can be used for this easily:
http://docs.oracle.com/javase/tutorial/networking/sockets/
I am not sure, for example, how to retrieve the integer portion (ie 4
bytes); any problem with Endian oddities ?
Just thinking, can I use an object, serializable one ?
Thanks.
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
--
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