[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fork() and socketpair()



My program forks into two separate processes, and i must connect them with a 
pipe wich i must be able to use with send() and recv().
socketpair is perfect (i socketpair() and then fork()) but it seems not very 
portable.
The alternative would be fork() and then link the two processes with standard 
socket()/connect()/listen() calls.

I thought about using pipe(), but it is not full-duplex and i don't know if 
it is safe to use with send() and recv().

Thanx,
Francesco Orsenigo,
Xarvh Projext
http://freeweb.lombardiacom.it/xarvh/