Jeroen
Jeroen

Reputation: 16865

Create Two Way Local/Unix Socket

Is there a way to create a 2 way local/Unix socket using boost::asio. My current Operating System (Ubuntu) supports Unix sockets but I can't quite figure out how to create one. The official boost resources don't tell me much but it appears to be the only resource available at the time.

Upvotes: 0

Views: 197

Answers (1)

Sam Miller
Sam Miller

Reputation: 24174

Yes, use the boost::asio::local::connect_pair() free function. It can be used with stream or datagram local sockets.

Upvotes: 1

Related Questions