WOW
that's a problem for my concept now
well, to be sure that i understand:
i do this:
1. have a TCP server (make accept(...)
2. using accept i get a number
3. system("./testprog connection_number_i_got_from_accept"); // call another prog, and use arguments to send the connection number
4. testprog reads it's command line arguments
5. testprog uses functions read(); or write(); to read/write using the connection number
the above example doesn't work because the connection can't be shared through many processes like this way, because the number is depending on the process mapped by the kernel??
right?
if this is right, ;-( ;-( do you have an alternative way/idea how i can share a connection through many programs?