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...


I have done some pretty simple socket programing with C/C++. In this case, with pointers I have quite a free hand to encode my data using a scheme onto a memory buffer. At the receiving end once I get socket data into a memory buffer I can easily decode the data.

As of now, I am just not certain how to encode my data onto a bytearray with java tools. For example given an integer, with C, just obtain a pointer to the integer then pack the 4 bytes one by one onto my buffer. In java, I think, as of now, I have to use the 'shift' operator and be careful with the sign bit.

For you info, the file I/O and byte stream features in java are bewildering to a new comer. For one with a lot time they are no much of a problem. Thus advice help of gurus are essential to cut down learning time.








--
Using Opera's revolutionary e-mail 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to