[android-developers] Re: Re: Packing data onto socket stream ?

2011-12-31 Thread SL@maxis
If you're doing web dev and don't know about json, you're probably doing something wrong. Anyway, good luck with your odd approach. OK, OK, I shall look at it. May be it can simplify some of my tasks. You see there are always so many things to look into it that ends up looking a few

[android-developers] Re: Re: Packing data onto socket stream ?

2011-12-30 Thread SL@maxis
Well, now it sounds like you're reinventing mime types..., but this isn't a horrible way to do it either I suppose. In either case what's giving you the difficulty? You can send the bytestream by doing a standard read() and write() across the socket, so this shouldn't be too bad.. Thanks.

Re: [android-developers] Re: Re: Packing data onto socket stream ?

2011-12-30 Thread Kostya Vasilyev
Does it have to be a binary format? These days, it's common to use text-based formats even if it's somewhat less efficient -- to simplify development, debugging and later, maintenance and enhancements. -- Kostya 30 декабря 2011 г. 17:29 пользователь SL@maxis ecp_...@my-rialto.comнаписал:

[android-developers] Re: Re: Packing data onto socket stream ?

2011-12-29 Thread SL
xxxThis is a greeting. where: xxx - message type (3 bytes, text) - 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:

Re: [android-developers] Re: Re: Packing data onto socket stream ?

2011-12-29 Thread Kristopher Micinski
On Fri, Dec 30, 2011 at 5:36 PM, SL ecp_...@my-rialto.com wrote:   xxxThis is a greeting.  where:  xxx  - message type (3 bytes, text) - 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