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?
How to Choose a Socket Type?
How to look up a Service by Port and Protocol?
What is Internet Address Classes?
How to use the socket(2) Function?
How to Define a Socket?
What is the difference between socket and port?
How to Form Local Addresses?
Why bind system call is required in socket programming ? what is it;s Significance ?
3 Answers Cavium Networks, IBM,
What is the Use of the inet_lnaof() Function?
How to use the PF_LOCAL and AF_LOCAL Macros?
What is socket connection?