By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,190 Members | 833 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,190 IT Pros & Developers. It's quick & easy.

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

P: n/a
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:al****@connect.to
http://mathforum.org/library/view/10978.html
=====================================
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.