And I also need to read what I have written before I post the message.
/ Per Hedbor ()
Previous text:
2003-03-19 13:54: Subject: I/O callbacks in blocking mode
No and no. I use nonblocking operation when nessesary, not otherwise.
I use RPC-API:s with combined blocking and nonblocking methods, without using threads.
Switching unessesarily between blocking and nonblocking mode on the socket is rather wasteful, as I have previously stated.
The specific use that triggered this discussion, though, is a fully blocking API between child daemons and a master daemon.
I do no, however, want to start read/write threads for each daemon, instead I use a read_callback, blocking writes. Until that check was added if worked perfectly (included the much wanted feature of blocking the main server until the RPC call to the child server succeded)
/ Per Hedbor ()