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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sockets and childprocesses

Status
Not open for further replies.

anandkonda

Programmer
Joined
Jan 31, 2000
Messages
1
Location
JP
hi,<br>
<br>
im trying to write a concurrent server in c++ (win32)using socket streams. after listening and accepting the request from a client,im creating a child process through which im passing the socket-id obtained from listen() as a parameter to the new program that is being started by the child process. when i use this socket-id in the new program(child process) im not able to recieve any data using recv() and recv is returning a value of -1.<br>
<br>
can some body help me over this.<br>
<br>
thanks<br>
<br>
anand.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top