Coder Social home page Coder Social logo

yottaawesome / winsock-2.0 Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 3.0 19.66 MB

Unofficial source code repo for Lewis Napper's WinSock 2.0 (1997) book.

Home Page: https://dl.acm.org/doi/book/10.5555/522582

License: MIT License

C++ 37.59% C 62.41%
cpp win32 winsock2 reference

winsock-2.0's Introduction

WinSock 2.0 (1997) source code

Introduction

This is an unofficial source code repo for Lewis Napper's WinSock 2.0 (1997) book. The source code is reproduced here for reference (so you don't need to dig up the physical media of the book) and remains the copyright of the book authors.

Using this repository

To build, you'll need Visual Studio 2019 (any version) with the Desktop development with C++ workload installed. Some samples also use MFC, so you'll also need the C++ MFC for latest v142 build tools (x86 & x64) component installed.

Changes

I'm currently going through the code, restructuring the directories, and adding Visual Studio 2019 projects to build the projects (converted projects are listed below). As this is decades old Win32 code, I don't plan on fixing compiler or security warnings, but if you do copy any code from this repository, it's strongly advised you heed and understand these warnings.

Conversion status

The conversion effort is ongoing and will take some time. Items listed below are successfully converted samples.

Chapter Sample Conversion notes
2 Datagram client and server OK.
GetHTTP OK.
HostInfo OK.
WsVer OK.
Stream client and server OK.
4 Chekmail OK. Requires MFC.
5 Ping OK.
PingI OK.
6 SendMail OK. Disabled an MFC call to address compiler warning C4996.
Wsterm OK. Updated WSTERM.RC2 resource file.
7 EnumProt
  • The ws2dnet.h header, which defines types for the now defunct DECnet protocol suite, is no longer part of the Windows SDK. The references to ws2dnet.h and its types have been commented out.
  • After the conversion, the build process complained about a missing bitmap file bitmap1.bmp. I'm not sure what this file is about, and I can't find any reference to it in the repository, so I added a dummy bitmap to make the build happy.
  • The ordering of the inclusion of Windows.h and winsock2.h was changed to prevent redefinitions.
SelProto OK.
8 Services
  • The ws2dnet.h header, which defines types for the now defunct DECnet protocol suite, is no longer part of the Windows SDK. The references to ws2dnet.h and its types have been commented out.
  • Windows NT 4.0 (_WIN32_WINNT 0x400) is no longer supported by MFC, and so MFC would not build against this version. I've bumped the version to Windows 10.
  • Disabled an MFC call to address compiler warning C4996.
9 GetHttp2 OK. Changed main() signature.
GetHttp3 OK. Changed main() signature.
10 httpa OK. There's actually a bug in this sample where requesting for a file in the hosted directory causes a 404 due to an extraneous "/" being prepended to the file name -- I may eventually fix this.
11 httpmt OK.
12 ๐Ÿšง In progress.

Additional resources

winsock-2.0's People

Contributors

yottaawesome avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.