Answer Posted / 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 |
Post New Answer View All Answers
How to Deal with Duplicated Sockets?
How to Choose a Socket Type?
What is the use of PF_LOCAL and SOCK_STREAM?
How to read socket file in linux?
How to Understand Netmask Values?
What is the use of PF_INET and SOCK_STREAM?
What is the Use of the inet_makeaddr() Function?
How TCP/IP Handles Lost Packets?
How to Bind a Specific Interface Address?
Are udp sockets bidirectional?
How to Test with No Server?
Why socket programming is used?
What is a socket in linux?
What is the use of setprotoent(3) Function?
How does socket communication work?