geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan D. Cabrera" <...@toolazydogs.com>
Subject RE: Socket Question
Date Sat, 11 Sep 2004 15:34:52 GMT
It will use blocking IO.  If you want non-blocking IO, then look into
NIO.


Regards,
Alan

> -----Original Message-----
> From: John Woolsey [mailto:jwoolsey@activation.net]
> Sent: Saturday, September 11, 2004 8:18 AM
> To: dev@geronimo.apache.org
> Subject: Socket Question
> 
> I was wondering how the socket class is implemented. Does it basically
> assume blocking io? I know you can read without anything there and it
> blocks. Is there a way to hook a callback in so that if data is
incoming
> it will do something?
> 
> I chased through the lib source code and managed to trace it back to a
> native call. I didn't see anything like a callback there. I just
looked
> through a few C/C++ tutorials and don't see anything about callbacks
> there either, but I had to ask.
> 
> 
>                                           - bfn - JAW
> 



Mime
View raw message