Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sharing file descriptors

Status
Not open for further replies.

bobbyjones01

Programmer
Aug 15, 2001
2
CA
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top