What is the use of socketpair()?



What is the use of socketpair()?..

Answer / karnveer singh

socketpair can used when parent child process wants to communicate, while using socketpair you dont need to use the name socket for example, no need to use bind , connect and etc.
On simply returned socket descriptor assume socket[0], socket[1], you could perform read and write operation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Socket Programming Interview Questions

What is the use of PF_INET and SOCK_DGRAM?

0 Answers  


How to Form Abstract Local Addresses?

0 Answers  


Why bind system call is required in socket programming ? what is it;s Significance ?

3 Answers   Cavium Networks, IBM,


How to open socket file in linux?

0 Answers  


What are sockets used for?

0 Answers  






How to Understand Netmask Values?

0 Answers  


What is the use of SOCK_STREAM Socket Type?

0 Answers  


What are Nameless Sockets?

0 Answers  


What is the use of setprotoent(3) Function?

0 Answers  


How to Specify an X.25 Address?

0 Answers  


What is socket connection?

0 Answers  


How to Allocate IP Addresses?

0 Answers   CSC,


Categories