As I mentioned in my earlier reply
(http://www.mail-archive.com/java-linux@java.blackdown.org/msg10490.html),
the question is how the server is choosing to make its resources
available to the rest of the world.
Sockets are a low-level protocol; it's the higher-level protocols
like HTTP, NFS, FTP, and so on that make files available to the world.
To use an analogy, sockets are the telephone wire, while these other
protocols are the conversations that take place over the phone. The
question you need to answer is: who's on the other end to talk to you?
It sounds like you're looking for an answer that sounds like "just
call RemoteFile.open()" to have full file I/O with files on the
server. Unfortunately, it doesn't work that way. The server needs to make
its resources available through some protocol, and you need to speak
that protocol to use the resources. The HTTP methods GET and PUT are
one way but, as you've probably figured out, they only move entire files
between client and server.
If you're really looking for a way to just open() and read/write files
from the server, you're probably going to have to write some server-side
support to make it happen - something like a servlet that'll cooperate
with your applet. It'll also be a gaping security hole if you're not
careful.
Nathan
On Wed, Nov 17, 1999 at 01:49:33PM -0700, Yohans Mendoza wrote:
> thanks again for all the responses, but I am more interested in talking to
> the server in some way in which I have a better communication than the
> http protocol.
>
> I'd like to be able to read/write files, know whether the file eixts
> or not.
>
> Can it be done with http protocol?
> what about sockets?
> is it a good think to be looking into?
>
> TIA
>
> --Yohans
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Yohans Mendoza Unix Administrator
> [EMAIL PROTECTED] Sirius Images Inc.
> http://www2.utep.edu/~yohans http://www.sirius-images.net
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]