Solved

TCP/IP code based on boost asio synchronous/asynchronous

Posted on 2008-10-09
1
1,513 Views
Last Modified: 2013-11-13
Hi All,

As a first step in our project, I need to use boost asio to build a communication protocol above the tcp/ip layer.
So I need to :
establish connection , send and receive messages synchronously and asynchronously.
In the Asynchronous case, I need to give the client a possibility to register his method so I called him back when I receive a message and I deliver to him the message.
something like:

handleEvent ( String Message)
{
}

I need your help to point me to some existing code in boost asio or a similar code that I can adapt it to boost asio lib.

Thanks,

B.T
0
Comment
Question by:bachra04
1 Comment
 
LVL 5

Accepted Solution

by:
libin_v earned 500 total points
ID: 22684720
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about a problem I had getting the GPS LocationListener working.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question