Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3353402
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:08:49+00:00 2026-05-18T02:08:49+00:00

I recently have been getting more into C++. I have done some (very minimal)

  • 0

I recently have been getting more into C++. I have done some (very minimal) socket programming with C, but have been interested in doing some work with C++. I have only been able to find reference/tutorials on C based socket implementations. Is there a reason for this? I know, or believe I know that you can use the C socket libraries for C++, but am not sure.

Is there a C++ socket library that is used more often then others? This isn’t a subjective question, I am actually looking to find out what the Socket API’s/libraries are for C++.

I am fairly new at socket programming and C++, so please no answers that will throw me for a loop.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:08:50+00:00Added an answer on May 18, 2026 at 2:08 am

    Here I’m attempting to answer some of your specific, factual questions to which I have something to contribute.

    Yes, you can use any C socket library in C++. If it doesn’t work out-of-the-box because the linker reports an undefined reference for the library functions you want to use, then can fix it by editing the .h file(s) of the library, adding extern "C" in front of all function and global variable declarations.

    To find libraries, go to http://freshmeat.net/ , and search for C++ socket or C socket. Here is what I’ve found for C++ socket:

    • Socket++.
    • ENUt.
    • LibSylph.
    • CPPSocket might also work for you, although the last update was in 2003.
    • SocketW is similarly old: last update in 2003.

    As Raphael has mentioned in his answer, you might find the socket part of the Qt library useful. See QTCpSocket for reference, and the fortune client for example code.

    Also Boost.Asio has popped to my mind, but it might have too much abstraction and low-level details exposed for you.

    Do your search for C socket on freshmeat, you may find a C library which suits better than any C++ library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently been doing a lot of Objective-C programming, and just got back into
I've been looking into memory management a lot recently and have been looking at
Hey guys, I have been programming with as3 for the past 4 months and
I recently getting to know about functional programming (in Haskell and Scala). It's capabilities
I've found the ThreadStatic attribute to be extremely useful recently, but makes me now
My company is fairly new to unit testing our code. I've been reading about
One of the things mentioned recently maybe in the SO podcast or Joel was
I recently moved my whole local web development area over to using MacPorts stuff,
Currently I am designing a database for use in our company. We are using
I am looking for a set of nice plugins to use when developing software.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.