

since Aug 04, 2002
[ Last Modification : 2004/07/14] --------------------------------- Here is C++ stream-compatible TCP/IP sockets (Demo application). The program implements a demo application which demonstrates using C++ stream-compatible sockets developed by Maciej Sobczak http://www.msobczak.com/ The Demo2 application has been written by Alex Vinokur. Programming Language : C++. Any and all comments would be appreciated. Alex Vinokur ----------------------------------- alexvn@go.to alexv@hitechclub.com http://up.to/alexvn -----------------------------------
Content. |
====================================================
=================== 1. Algorithm ===================
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 |
========================================================================== ============================= 2. Program Files =========================== The algorithm contains the following files : |
==================================================== ==================== 3. Compiling ================== //######################################################### //------------------- System & Compiler ------------------ Windows 2000 Professional CYGWIN_NT-5.0 1.3.22(0.78/3/2) GNU gcc/g++ version 3.2 20020927 (prerelease) GNU Make version 3.79.1 //-------------------- Compiling : BEGIN ------------------ % make //-------------------- Compiling : END -------------------- |
==================================================== ===================== 4. Running =================== //######################################################### //-------------------- Running : BEGIN -------------------- //------ Getting Help ------ % sock //------ Invoking server ------ % sock -s 2 //------ Invoking client ------ % sock -c 2 Sample Log Files //-------------------- Running : END ---------------------- |
==================================================== ===================== 5. Download ================== //######################################################### http://sourceforge.net/projects/cpp-sockets http://alexvn.freeservers.com/s1/zip_dir//sock.zip |