Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An easy to use interface for working with sockets in C.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.ruby-gemset
.ruby-version
Gemfile
Gemfile.lock
README.md
client.c
client_udp.c
ddos.c
makefile
myclient.c
restart.c
restart.h
server.c
server_udp.c
uici.c
uici.h
uici1.c
uiciname.c
uiciname.h
uiciudp.c
uiciudp.h

README.md

This file contains information about compiling the programs from Appendix C of UNIX Systems Programming.

Under Solaris: no changes needed.

Under Linux: Compiling the programs under Linux typically requires that the constant _GNU_SOURCE be defined. Run the convertlinux program once to modify the makefile use this constant.

Also, Linux does not need the -lsocket library. The convertlinux program removes this from makefile.

Lastly, linux does not support gethostbyname_r and gethostbyaddr_r as described in the text so the convertlinux program removes these implementations from the default compilation.

Under Mac OS X: Mac OS X does not need either of the libraries -lsocket or -lnsl. Run the convertmac program once to remove these from the makefile.

Also, Max OS X does not support gethostbyname_r and gethostbyaddr_r so the convertlinux program removes these implementations from the default compilation.

Something went wrong with that request. Please try again.