The POCO C++ Libraries Blog

Local Sockets Support

Filed under: Uncategorized by alex at 01:55

I have just added Sockets library with local (aka UNIX) sockets support to SVN sandbox. The code was extracted from Net library and slightly modified to accommodate for UNIX sockets. For the time being, tested only on Linux. I’ll do Solaris testing as well, whoever can run it on other platforms, please do and report back any modifications. As for the final destiny of this code, the jury (aka Günter) is still out, but the idea behind this madness is to provide a contribution to IPC and IO efforts. Comments welcome.

  1. Just to make sure the work was not in vain (and to please Günter ;-), I’ve ran some tests (positive percentage means local sockets are faster):

    Open Solaris (SunOs 5.11) -24.5% 10.4% 17.3%
    Linux (Ubuntu 2.6.27-7 32 bit) 4.6% 87.0% 98.3%
    Linux (Gentoo 2.6.11-r6 32 bit) 8.1% 37.2% 40.0%
    Linux (Ubuntu 2.6.27-9 64 bit) 20.8% 40.6% 41.7%

    Comment by alex on March 27, 2009, 00:34

  2. Thanks. I find these numbers quite interesting.

    Comment by guenter on March 27, 2009, 11:48

  3. I’d be curious to see the results for other platforms. Also, I slapped this together rather quickly, so a double-check of my testing code is by all means welcome. The code is in DatagramLocalSocketTest::testDatagramSocketPerformance()
    and LocalSocketTest::testSocketsPerformance()

    Comment by alex on March 27, 2009, 13:42

  4. Can’t wait to see 1.3.4 🙂 Hopefully it will be released this week.

    Comment by Viet on March 30, 2009, 11:20

  5. > Can’t wait to see 1.3.4

    Just to set the record straight: this will NOT be in 1.3.4

    Comment by alex on March 30, 2009, 12:27

  6. I wish there was a way to write properties in XMLConfiguration. I get a: Not implemented: Setting a property in an XMLConfiguration. So that is my wish:D

    Comment by electic on April 5, 2009, 05:24

RSS RSS feed for comments on this post. TrackBack URI

Leave a comment