Home  +  Forums  +  C++ and Sockets  +  C++ and SQL: MySQL, sqlite, ODBC  +  Miscellaneous Projects
Logo

    
~Sockets~
~New~
~Examples~
~Contact~

C++ Socket library tutorial

[ About | Download | Tutorial | Documentation | User testimonials | Awards | Buy ]

Tutorial: Using the C++ Sockets library

Introduction | Installation | Configuration

Creating a socket that echoes input to screen
Using the DisplaySocket as a Client
Using the DisplaySocket as a Server
Other implementations of the DisplaySocket

Sending data

Creating a socket that returns SocketHandler status
Using the StatusSocket as a Server
Modify the StatusSocket server to use SSL
An SSL client that talks to the ssl statusserver

Building a custom SocketHandler
Using the custom SocketHandler in a server

Error logging
Standard input

UDPSocket example
UDP client / server example
Using HttpPutSocket
Using GetPort
Connection pool test program
How to enable Async DNS
Socks4 client functionality
Resuming a connection
Builtin connection retry and reconnect (v1.9)

New in 2.0: timer events
New in 2.0: threadsafe operation
New in 2.0: interface changes
SSL randomness
New in 2.1: interface changes
new page New in 2.3: Xml and a new OnDisconnect

Download tutorial source code examples here: Sockets-tutorial.tar.gz | Sockets-tutorial.zip



Valid HTML 4.01!

Validate
Page, code, and content Copyright (C) 2013 by Anders Hedström
"A hacker does for love what others would not do for money."