On 7/13/07, Damien <[EMAIL PROTECTED]> wrote:
the service when there is something new. It is totally different. So for me there is no means to use non-blocking sockets under unix. Am I wrong ? The equivalent of sdasync would be something like : while. 0=#read *. 0=#write *. 0=#error do. 'read write error'=. sdselect '' end.
I think non-blocking sockets are a different issue. Currently, to get the effect of sdasync under unix you would need to write some C to make things work (run the socket in another thread, and leave your J session at 3-space indent, letting the C code you write issue calls passing back the socket information to some verb of yours). [Another option, only open to ISI or people replacing J's standard main loop, would be to put sdselect type support into the main loop to accomplish basically the same thing -- you would not need an extra thread this way.] -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
