Friday, December 30, 2011

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

On Fri, Dec 30, 2011 at 11:25 PM, SL@maxis <> wrote:
>> If you have a background with php and javascript you should already know
>> about json.
>> What are you trying to do?  This sounds like something a simple webservice
>> with a fileserver could easily do.
> I have heard about 'json' but never bother with it. Those web related things
> are done with PHP and javascript without 'json'.
> Recently while I was planning to FTP some files onto a webserver with java
> that I discovered java does not provide FTP features (quite a let-down
> really). Of course 3rd-party library like apache provides such a service,
> but I am a bit reluctant to use a 3rd-party tool, always fearing the
> possibilty of a back-door virus. It was only then I realised that a PHP
> script on a webserver would do the job.

If it's a trusted library such as apache (for example, the dynamically
linked org.apache harmony system...) that's an entirely irrational
fear. If it's a "random jar you pull off a forum" that's more
understandable. If you want one, go find a trusted jar, make sure
your download matches the checksum, and you'll be fine.

Though I have to admit, the questions you're asking could easily be
resolved if you set aside two or three days worth of time, read
through basic socket tutorials outside of the context of your current
questions, and came back to this issue.

For what you're doing, this sounds like you're trying to implement
something similar to IRC. IRC has messages, and also incorporates a
mechanism for file transfer, if you look at the newer CTCP. However
you won't be able to read and implement these (well, or your reduction
to it) unless you have background socket programming knowledge, which
you should get...


You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment