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 are the different types of sockets?
How to Bind Addresses to a Socket?
Can a socket have multiple connections?
How to Form Internet (IPv4) Socket Addresses?
What is socket and how it works?
What are sockets in linux?
How TCP/IP Handles Sequencing?
How to Deal with Duplicated Sockets?
How to Choose a Socket Type?
How to Test with No Server?
How to Form Traditional Local Addresses?