|
Boost Users : |
Subject: Re: [Boost-users] boost asio disign
From: Gonzalo Garramuno (ggarra13_at_[hidden])
Date: 2012-12-22 17:12:43
On 19/12/12 11:51, Christer Borgqvist wrote:
> Hello,
> how can I design an application that will have a http server like HTTP
> Server 3 example,
> but also x number of tcp clients connecting to a server,
> client must connect to the server before the http server is active, if
> client is idle with a timer events send an 'I'm here' in every 10 seconds,
> i tink i have to put the tcp client on a list or ?.
Your intuition is correct. You need to create a session for each client
and then manage things there. See the timeout or the chat example in
the libs/asio/example directory of boost.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net