bobbyjones01
Programmer
Hi there,
I'm writing a program that is sending data over a socket to a server which is processing the requests and sending back data. On my side (the client side) what I need to do is to be able to share the socket file descriptors between two different processes so that I can read/write to this same socket from both processes. I realize that by forking and creating the new process I can accomplish this task, but it would be better if I could use some sort of dup() across two different processes. Does anyone know if this is possible, and if so how?
Thanks for your help,
Bob.
I'm writing a program that is sending data over a socket to a server which is processing the requests and sending back data. On my side (the client side) what I need to do is to be able to share the socket file descriptors between two different processes so that I can read/write to this same socket from both processes. I realize that by forking and creating the new process I can accomplish this task, but it would be better if I could use some sort of dup() across two different processes. Does anyone know if this is possible, and if so how?
Thanks for your help,
Bob.