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

  • SEARCH
  • Home
  • 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 9053939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:33:09+00:00 2026-06-16T13:33:09+00:00

Does anyone know the differences between WinSock.h and WinSock2.h . I know they don’t

  • 0

Does anyone know the differences between WinSock.h and WinSock2.h . I know they don’t use the same library (.lib) but I don’t know if WinSock2 only adds new features or if it also improves WinSock 1 features. I am working with IP/TCP sockets and want to manage timeouts with select(). I also use multiple threads to manage more than only one client at the same time. Should I continue using WinSock 1.1 or should I move to WinSock 2? Thanks in advance.

  • 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-06-16T13:33:11+00:00Added an answer on June 16, 2026 at 1:33 pm

    You should probably use winsock2.h.

    Few points:

    • winsock.h should be used with wsock32.lib and winsock2.h should be used with ws2_32.lib
    • winsock.h and winsock2.h should not be together in the same project, winsock2.h replaces winsock.h and not extends it.
    • winsock.h should only be used if you target old version of Windows like Windows 95 / Windows NT 3.5.

    Microsoft implementations

    Version 1.1 (winsock.h) of Winsock was supplied in an add-on package (called Wolverine) for Windows for Workgroups (code named Snowball). It was an integral component of Windows 95 and Windows NT from versions 3.5 and onwards (the initial commercially available version of Windows NT, version 3.1, included only a proprietary and quite incomplete implementation of TCP/IP based on the AT&T UNIX System V “Streams” API.

    Version 2.1 (winsock2.h) of Winsock was supplied in an add-on package for Windows 95. It was an integral component of Windows 98, Windows NT 4.0, and all subsequent Windows releases. Recent versions of Winsock 2.x have been delivered with new Windows releases or as part of service packs.

    Does Winsock2 adds features?

    Winsock 2 is extensible by a mechanism known as a Layered Service Provider (LSP). Winsock LSPs are available for a wide range of useful purposes, including Internet parental controls, web content filtering, QoS etc.

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

Sidebar

Related Questions

Does anyone know the differences between RxJs and Knockout ? To me on the
Does anyone know the differences between the methods acquire () and release () (
Does anyone know what substantial differences there are between the regular PostgreSQL and Postgres
Does anyone know what the difference between mmap(2) and mmap(3) is? Man section 3
Has anyone ever tested, or does anyone know, the performance differences of these two
Does anyone know of any websites, or (preferably) downloadable packages that you can use
Does anyone know the real difference between the two ways of type casting in
Does anyone know the difference between those two?
Does anyone know the difference between System::Collections::ObjectModel::ReadOnlyDictionary and Microsoft::TeamFoundation::Client::ReadOnlyDictionary ?
Does anyone know the difference between using VarChar(255) and VarChar(65536) ? Here's what I

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.