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 Understand Netmask Values?
What is the use of PF_LOCAL and SOCK_STREAM?
How to perform I/O on Sockets?
What is the use of PF_INET and SOCK_STREAM?
What is the use of SOCK_DGRAM Socket Type?
What is the use of SOCK_STREAM Socket Type?
Are sockets full duplex?
What is the use of PF_INET and SOCK_DGRAM?
What are the different types of sockets?
How to Test with No Server?
How to Close Sockets?
How to Manipulate IP Numbers?