C++ stream-compatible TCP/IP sockets (Demo application)

A

Alex Vinokur

C++ Stream-Compatible TCP/IP Sockets
------------------------------------

http://alexvn.freeservers.com/s1/sock.html
http://sourceforge.net/projects/cpp-sockets/

The program implements the wrappers that can be used as a iostream-compatible TCP/IP sockets.
The wrappers have been written by Maciej Sobczak: http://www.maciejsobczak.com

The program also contains two demo applications.
Demo1 application has been written by Maciej Sobczak.
Demo2 application has been written by Alex Vinokur.


Demo2 Application Protocol (in general outline)
- - - - - - - - - - - - - - - - - - - - - - - -
Client's request is a packet which contains :
* request-id,
* data type (typeid(T).name()),
* data size (number of items),
* data which is a vector of items;
size of vector == number of items
The packet may contain data of any type, for instance,
vector<int>, vector<string>, vector<User-Defined-Type>.
To create the request the client analyses the reply
(on its previous request) received from the server.

Server's reply consists of several packets of
different types (subreplies).
To create the reply the server analyses the request
received from the client.

Raw Logs : http://groups.google.com/groups?th=febd5696b03dfa8

=====================================
Alex Vinokur
mailto:[email protected]
http://mathforum.org/library/view/10978.html
=====================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top