Programming for the Sockets API - Contents

Want to know how TCPIP programs are typically put together, what the intracacies of client and server programming involve, then this tutorial is for you.

The following sections are designed to be read in order, however, with just a little knowledge you should be able to jump directly to a section that interests you.

Introduction
Don't really know what sockets are or how APIs work, then start here.
Socket
Create
The start to any communications on the API, obtaining a socket.
Client
Connections
Establishing client connections.
Send
Receive
Concepts for sending and receiving data.
Server
Connections
Listening for and accepting connection requests.
Select
Avoiding hangs and enabling multiple connections on a single thread.
Shutdown
Close
Terminating a connection in an orderly manner and closing the socket.
Examples
The full program examples from which the snippets used in the tutorial have been taken.

 

Introduction
Next
Tutorials
List
Contents