[2079] in java-interest
Client/Server question... (already have applets/applications up and running)
daemon@ATHENA.MIT.EDU (java guru)
Fri Sep 22 21:49:22 1995
Date: Fri, 22 Sep 95 16:08:16 -0700
From: java guru <devjava@gscorp.com>
To: java-interest@java.sun.com
I have some pretty neat client-server applets/applications running
now but I have one question for anyone who might possibly know the
answer.
I can instanciate a NetworkClient and have it talk to a NetworkServer
instance. However the server can't talk back to the client at all...
at least I can't figure out how to do it. I've tried writing through
the serverOutput instance directly and flushing the buffer to no
avail.
Receiving data from a client by way of the -serviceRequest() method
is no problem in NetworkServer, I just ask for the data from the
client and display. However setting up two-way communication between
the two programs currently requires a pair of clients and servers to
be instantiated, with each program having a client and a server!!
Hmm... this doesn't make sense.
It's good enough for my demo but it doesn't make sense.
Tiny sources for simple Client/Server are as usual available at
ftp://ftp.cs.sonoma.edu/pub/Java/apps
--thomas--
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com