If you use the Observer / Observable objects, you should be able to
accomplish this.



|---------+------------------------------->
|         |   "Luc Foisy"                 |
|         |   <[EMAIL PROTECTED]|
|         |   om>                         |
|         |                               |
|         |   21/08/2002 01:26 PM         |
|         |   Please respond to "JDJList" |
|         |                               |
|---------+------------------------------->
  
>---------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                           |
  |        To:      "JDJList" <[EMAIL PROTECTED]>                            
                           |
  |        cc:                                                                         
                           |
  |        Subject: [jdjlist] Socket - InputStream                                     
                           |
  
>---------------------------------------------------------------------------------------------------------------|




If I have a ServerSocket set up to pool several Socket connections, I could
set up a thread to check for stuff in each Sockets InputStream

Is there some way I can set up some kind of listener to catch if something
is pushed into the InputStream then do something as opposed to the thread
pulling it

I just don't want to have something constantly checking each input

Luc

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm



This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.


To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to