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 |
How to Generate Addresses?
What is AF_UNSPEC Address?
How to Perform Input/Output of Datagrams?
How socket is created?
How to Close Sockets?
How to use the socket(2) Function?
How to Perform Endian Conversions?
What is socket connection?
What are the different types of sockets?
How to test socket connection in linux?
Are udp sockets bidirectional?
How to Specify an X.25 Address?