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
=====================================
------------------------------------
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
=====================================