Socketpair

From Hackepedia
Revision as of 15:28, 3 December 2005 by Pbug (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.