Hi, Apologies to those not interested as this is really a java question but I could not get an answer from the java forum. Please reply to me directly so not to bother uninterested forum members.
When I use a TCP socket and check for new messages I have to call the read method on the associated InputStream. If there are no messages to be read this will block and so a thread has to be used. Is there any way in java I can cause an event to be generated when the inputstream contains a message without explicitally using threads. Perhaps it could be achieved by making the socket/inputStream observable so that a change in state would trigger an event ? Could the java native interface be used to monitor low level events ? I would greatly appreciate a reply telling me if this is possible or not. I'm a student and only have 1 year of java experience. Thanks for your time, David Cawley _______________________________________________ Sip-implementors mailing list [EMAIL PROTECTED] http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
