Giter Club home page Giter Club logo

sock's Introduction

W. Richard Steven's sock program

This is a port of W. Richard Steven's "sock" program. This program is extensively used for exercises in his excellent TCP/IP Illustrated book (I don't make any money if you purchased this book, I'm just a fan).

The original port of sock was done by Mike Borella but didn't compile on my system (gcc 4.8.4+). I fixed all the errors and warnings and used [GNU indent] (https://www.gnu.org/software/indent/manual/indent.html) to reformat the source code consistently.

Please note that I do not hold the Copyright over this program. The program is copyrighted by Mr. Stevens, but allowed free use as long as properly attributed (see the LICENSE) file for details.

Compiling

To compile the program, just type:

$ ./configure
$ make
$ sudo make install

Pull requests

Times change, and so do compilers and systems. If you manage to patch a problem in this program, send me a pull request and I will incorporate it back into the repository. I recommend using GNU indent to reformat your sources before opening the pull request. The recommended indent invocation is:

indent -l128 --no-tabs --tab-size4 --indent-level4 --braces-on-if-line \
       --cuddle-else --braces-on-func-def-line --braces-on-struct-decl-line \
       --cuddle-do-while --no-space-after-function-call-names \ 
       --no-space-after-parentheses --dont-break-procedure-type *.c

sock's People

Contributors

marcopaganini 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.