Skip to content

Beej’s Guide to Network Programming

November 20, 2005

A relatively concise and complete introduction to sockets programming.
The guide covers:
1) the data structures for representing internet addresses.
2) the functions for making sure bytes are in the correct representation
3) the two types of internet sockets (SOCK_STREAM and SOCK_DGRAM)
4) the sockets API including the order of function calls for the different situations (client vs server, stream vs datagram). Also covers connected datagrams (a matter of convenience).
5) the basics of creating client server applications
6) how to use select() to do non-blocking I/O on sockets
7) how to handle partial reads/writes
8) having client and server agree on message formats

Source: Beej’s Guide to Network Programming


From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: