Socketpair

From Hackepedia
Jump to navigationJump to search

A socketpair is a form of IPC. It creates a bi-directional channel where data can be sent through from either end. This is different from pipes which are uni-directional. The most common use for a socketpair is where a parent sets it up, then forks and is able to enjoy IPC between the parent and the child. Unassociated processes probably cannot make use of a socketpair.