Subject: Re: [boost] [asio] Multithreaded UDP server
From: Miroslav BeraniÄ ml. (miroslav.beranic_at_[hidden])
Date: 2008-11-22 12:46:29
I would like to do something like HTTP Server 3, An HTTP server using
a single io_service and a thread pool calling io_service::run(). With
difference it uses UDP and not TCP. Basically I need UDP server that
is (/would be) able to accept connections on multiple threads. Server
accepts command from client and does some work in the background. It
needs to send : SUCCESS or FAILURE back to the client. I have read
examples, tutorials about use of boost::asio::strand, I use it in TCP
server. I am stuck with accepting connections with multiple threads...
I hope I did narrow down the topic, or didn't I?
And: What would be the most efficient way to use CPU power (MacPro
Quad-Core) when working with ASIO (TCP, UDP, ...), here I am referring
to example HTTP 2, HTTP 3 or some other design?
BTW: Great, great work on ASIO and Boost as package...
2008/11/22 Christian Holmquist <c.holmquist_at_[hidden]>:
> First, I think it's a good idea to give the list some hint on what you're
> trying to achieve, multithreading is not a narrow topic.
> Have you looked at the asio tutorials and examples?
> / Christian
> 2008/11/20 Miroslav BeraniÄ ml. <miroslav.beranic_at_[hidden]>
>> would it be possible to post multithreaded UDP server example? Some
>> pointers on internet or just some tips how to build one?
>> Best regards,
>> Miroslav BeraniÄ ml.
>> Unsubscribe & other changes:
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Miroslav BeraniÄ ml. Mibesis, Miroslav BeraniÄ s.p. +386(0)40/814-843 miroslav.beranic_at_[hidden] http://www.mibesis.si
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk