[5534] in java-interest
Two way communication
daemon@ATHENA.MIT.EDU (tahmed)
Thu Feb 15 13:22:38 1996
Date: Thu, 15 Feb 1996 11:51:28 -0500 (EST)
From: tahmed <tahmed@on.bell.ca>
To: java-interest@java.sun.com
In-Reply-To: <2.2.32.19960213230555.006dcb10@exmachina.com>
Ok, this is what I want to do. You got a client
connected to the server. I've seen examples of client sending
stuff to server.. Server sending stuff to client. But never
both at the same time. when I try it, it kinda works, but
then gets locked up. I figure the general routine would be:
while(connection is alive)
{
if(there is input available)
read it in
if(there is stuff to send)
send it out
}
But that doesn't seem to work. Well first the Socket class
doesn't have a method to tell you if the connection is still there,
you just kind of find out that it's gone in an exception. Anyone
have any source?
+-=-=-=-=-=-=-=Bell SYGMA Telecom Solutions - Service Assurance-=-=-=-=-=-=-=+
160 Elgin St. Room 250. Ottawa, Ontario. K2P 2C4. (613)781-9820 F:238-7772
inet: tahmed@on.bell.ca IIS: TAHMED HomePage: http://cygnus.igs.net/ratt/
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com