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 the inet_netof() Function?
What is the Use of the inet_lnaof() Function?
What is the use of SOCK_STREAM Socket Type?
How to Test the Datagram Client and Server?
What is the use of inet_network()?
How to Reply to a Wild Address?
Why socket programming is used?
How to Perform Endian Conversions?
What is the use of PF_LOCAL and SOCK_STREAM?
How to Manipulate IP Numbers?
How to Examin the /etc/services File?
What are sockets used for?