Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > C++ stream-compatible TCP/IP sockets (Demo application)

Reply
Thread Tools

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

 
 
Alex Vinokur
Guest
Posts: n/a
 
      08-04-2003
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
(E-Mail Removed)
http://mathforum.org/library/view/10978.html
=====================================


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Carriage Returns and sockets Iceberg Perl 1 09-06-2003 04:49 PM
UNIX Domain Sockets Didatus Perl 1 08-18-2003 04:50 PM
Re: System.Net.Sockets.Tcplistener Gaurav Khanna [.NET MVP] ASP .Net 0 07-25-2003 12:34 PM
Re: System.Net.Sockets.Tcplistener Rick ASP .Net 0 07-17-2003 08:06 PM
Re: System.Net.Sockets.Tcplistener jeff ASP .Net 0 07-17-2003 02:09 PM



Advertisments