Flips tracking of IPC
ch12 at os.inf.tu-dresden.de
Wed May 4 15:21:53 CEST 2005
On Mon, May 02, 2005 at 08:30:04PM +0100, Tiago Jorge wrote:
> ok... maybe this is my problem regarding another thread in the hackers
> list... can this be solved using "select"?
> Because i must have a listen socket and a sending socket... so if my l4
> server has a socket in a select wainting for input, should it be able to
> send throught another socket?
Again, I'm not sure what your scenario looks like. You need a listen
socket L and a socket for sending S, right? Do you implement a TCP server
with accept()? I'm asking since you talked about UDP communication in
Anyway, your server blocks on L and afterwards you want your server to
send via S? A simple answer is: Deblock your server via a network packet
or any other action on a file (as you said you use select()). Then your
server is no longer blocked on an fd_set containig L and can send via S.
If this is not your favourite solution you have three choices:
1) Give us a detailed description of your scenario so we have a chance to
2) Implement a really multi-threaded server with dietlibc and L4VFS, in
which thread A can block on L while thread B sends via S. Post your
experiences and ask questions backgrounded with sufficient information
about the scenario and used functions.
3) Help yourself.
## Dept. of CS, TU Dresden, Germany ##
## http://os.inf.tu-dresden.de/~ch12 ##
More information about the l4-hackers