Let\'s say Java has two kind of sockets:
Imagine the situation of two
In C you can call socketpair(2) to get a pair of connected sockets, but I'm not sure if java has any built-in way of doing the same thing.