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 Write a UDP Datagram Server?
Why bind system call is required in socket programming ? what is it;s Significance ?
3 Answers Cavium Networks, IBM,
What is the use of recvfrom(2) Function?
How to Perform Input/Output of Datagrams?
How to Write a UDP Datagram Client?
How to Perform Endian Conversions?
How to Choose a Socket Type?
What is socket and how it works?
HOW TCP/IP Handles Duplicated Packets?
What is the use of PF_LOCAL and SOCK_STREAM?
How to Form Abstract Local Addresses?
How to perform I/O on Sockets?