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 |
What is the use of PF_INET and SOCK_DGRAM?
How to Form Abstract Local Addresses?
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?
What are sockets used for?
How to Understand Netmask Values?
What is the use of SOCK_STREAM Socket Type?
What are Nameless Sockets?
What is the use of setprotoent(3) Function?
How to Specify an X.25 Address?
What is socket connection?
How to Allocate IP Addresses?