Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 109 results for
asio
- Page 1
Boost Asio TCP SSL Concurrent Read Write
Programming
Software Development
8 Years Ago
by zekstein
…, request_length), boost::bind(&client::handle_write, this, boost::
asio
::placeholders::error, boost::
asio
::placeholders::bytes_transferred)); } else { cout << "Handshake…
Boost asio: server on ubuntu client windows problem
Programming
Software Development
14 Years Ago
by dav555
…tcp::socket socket(io_service); boost::system::error_code error = boost::
asio
::error::host_not_found; while (error && endpoint_iterator != end… boost::system::error_code ignored_error; boost::
asio
::write(socket, boost::
asio
::buffer(message), boost::
asio
::transfer_all(), ignored_error); cout <<…
Boost asio/regex noob needs a helping hand--
Programming
Software Development
14 Years Ago
by Intrade
… data on the internet! try{ boost::
asio
::io_service io_service; tcp::resolver resolver(io_service);…socket(io_service); boost::system::error_code error = boost::
asio
::error::host_not_found; while (error && …; socket.available(); size_t len = socket.receive(boost::
asio
::buffer(buf)); (*out).write(buf.data(), len);…
Basic problem of asio
Programming
Software Development
13 Years Ago
by stereomatching
… boost::system::error_code & ec) {} void asio_7b() {
asio
::io_service io_service;
asio
::ip::tcp::socket sock(std::ref(io_service) ); try { boost…"www.google.com", "80" ); boost::
asio
::ip::tcp::endpoint endpoint = resolver.resolve( query ); std::cout &…
Re: performance of boost asio and ACE
Programming
Software Development
13 Years Ago
by vijayan121
…use for a much longer time. > the performance between
asio
and ACE ACE is heavyweight in terms of memory footprint… single packet over TCP/IP. > could I use
asio
and ACE together? You certainly could. But ACE does tend… for your program, which it supports quite well; with
asio
you might have to write some extra code to conform…
performance of boost asio and ACE
Programming
Software Development
13 Years Ago
by stereomatching
… the information from the internet, most of the users say
asio
is a much more better choice than ACE if you… framework(and poor design)? I have three questions One : is
asio
as robust as ACE? although many users complain that ACE… not agree that ACE is solid Two : the performance between
asio
and ACE Three : could I use…
Using ASIO Audio drivers
Programming
Software Development
16 Years Ago
by herrepeder
Hi, I'm using Visual Studio 2008 on Windows XP. How do I play a mono sound of approx 2500 samples over 500ms using
ASIO
Audio Driver? I'm really stuck on this. I've never used callbacks before, but the
ASIO
driver does. I need to use
ASIO
due to latency issues.
Re: performance of boost asio and ACE
Programming
Software Development
13 Years Ago
by stereomatching
looks like I don't have to worry about the problems of performance The other problem is
asio
steady or not? Atleast I haven't heard any bad news about that
Re: Using ASIO Audio drivers
Programming
Software Development
16 Years Ago
by Ancient Dragon
… pointer to your function. You will have to read the
ASIO
Auto Driver's programming manual to find out exactly how…
Boost ASIO
Programming
Software Development
13 Years Ago
by pseudorandom21
If
ASIO
had better documentation I could probably have found for myself an answer, but instead... Is there a way to determine bytes available to read using the
asio
::ip::tcp::iostream ? I really like the tcp iostream because it's super-easy to use, but I haven't found it exactly feature-packed. Does it have a tcp socket in there somewhere?
Re: Boost ASIO
Programming
Software Development
13 Years Ago
by vijayan121
[code]void foo( boost::
asio
::ip::tcp::iostream& stm ) { std::size_t bytes_available = stm.rdbuf()-&… be retrieved for platform specific // socket functionality not available through
asio
. for example: auto fd = stm.rdbuf()->native_handle() ; // version 1…
boost::asio checker
Programming
Software Development
14 Years Ago
by MixedCoder
[CODE] try { boost::
asio
::io_service io_service; tcp::acceptor acceptor(io_service, tcp::endpoint(tcp::v4(), …
Issue with Boost ASIO Acceptor
Programming
Software Development
11 Years Ago
by missil9
Hello, I am currently trying to use boost
asio
for IPC. I ran into 2 strange issues: 1) when …
Re: Issue with Boost ASIO Acceptor
Programming
Software Development
11 Years Ago
by missil9
Also, if it helps, I am using one single boost::
asio
::io_service object for all connections... I have a Connector and …
Boost asio compile error with Code Blocks
Programming
Software Development
10 Years Ago
by Alxprog
… can't manage to compile the simplest (int main(){}) boost
asio
program with Code Blocks. I'm using Windows 7. Googling…
Re: Boost Asio TCP SSL Concurrent Read Write
Programming
Software Development
8 Years Ago
by rubberman
You need to post your errors and where they are coming from if you want any reasonable help. Asking for people to analyze 250+ lines of code is not usually received well. In any case I don't have time as I am currently out of the country until after the first of the year and have little time for such.
Re: Boost asio: server on ubuntu client windows problem
Programming
Software Development
14 Years Ago
by dav555
got it! should have created a new image with the provided OpenCV function. [CODE]IplImage *img2 = cvCreateImage(cvSize(atoi(parts[5].c_str()),atoi(parts[4].c_str())),atoi(parts[2].c_str()),atoi(parts[1].c_str())); cvSetData(img2,imgdata,img2->widthStep);[/CODE]
Re: Boost asio/regex noob needs a helping hand--
Programming
Software Development
14 Years Ago
by Taywin
Too much code for me to look at right now... Going to bed soon... So I will answer only your first question. Your regular expression is incorrect. the {#} is not supposed to be used the way you do. If you want to match 3 of w's, just spell it out... i.e. /^www\.[^\.]*\.[^\.]*\.\w+{2,4}/i That's just an example which is not a perfect solution. It…
Re: Boost asio/regex noob needs a helping hand--
Programming
Software Development
14 Years Ago
by Intrade
Okay, I have a question. What exactly does the i at the end represent for each of your patterns? Just the literal i, or does it have some other meaning? I don't see it mentioned on Boost regex, nor have I encountered it in Lua. I don't expect you to answer anytime soon... you're asleep ;p
Re: Boost asio/regex noob needs a helping hand--
Programming
Software Development
14 Years Ago
by Taywin
The 'i' indicates the match to 'ignore case'. You may need to read about regexp somewhere else because it is standard. Sorry, still don't have much time to answer your 2nd question. Hope someone else will handle this. Need to get going and won't be back until late here.
Re: Basic problem of asio
Programming
Software Development
13 Years Ago
by stereomatching
[QUOTE=;][/QUOTE] sorry, this program has a bug I should call io_service.run() after #1 because [quote] Asynchronous completion handlers will only be called from threads that are currently calling io_service::run(). [/quote]
Re: performance of boost asio and ACE
Programming
Software Development
13 Years Ago
by alwaysLearning0
Just food for thought: Performance of network programming mainly depends on how you are processing your datas. How you are sharing the data among several component of your software? How you are sharing the data among several processes on the machine? (shared memory/pipe/file fifo, mapped memory) How you have distributed load and data among the …
Re: performance of boost asio and ACE
Programming
Software Development
13 Years Ago
by stereomatching
I am learning how to deal with multi thread from the book "c++ concurrency in action" study how to design an allocator to handle small objects(any good suggestion about free, robust allocator which design for small objects?) Looks like socket programming is much more difficult than I could imagine
Re: performance of boost asio and ACE
Programming
Software Development
13 Years Ago
by vijayan121
> any good suggestion about free, robust allocator which design for small objects? Loki perhaps. [url]http://loki-lib.sourceforge.net/html/a00524.html[/url] Also see: [url]http://drdobbs.com/184402039[/url]
Re: performance of boost asio and ACE
Programming
Software Development
13 Years Ago
by alwaysLearning0
Suggestions made by vijayan121 is very good and I would have made the same suggestions. But dont worry about small object allocation if you are only started to learn thread and concurrency. First I would suggest to read about threads and different kind of locks and also lock free algorithms. Here is an example of lock free algorithm which will …
Re: performance of boost asio and ACE
Programming
Software Development
13 Years Ago
by stereomatching
[QUOTE]First I would suggest to read about threads and different kind of locks and also lock free algorithms.[/QUOTE] Thanks for your advices. Recently my company ask me to study the xerces c++ After study xerces c++, I realize why so many people would say Qt4 is a well designed library and is a good lesson for oop. The api of Qt4 are clear and …
Re: performance of boost asio and ACE
Programming
Software Development
13 Years Ago
by stereomatching
[code] boost::mutex mut; std::vector<int> int_vector; boost::condition_variable int_cond; void data_preparation_thread() { while(int_vector.size() != 10) { std::cout<<"front :: data preparation thread :: vector size = "<<int_vector.size()<<std::endl; boost::lock_guard<boost::mutex> lk(mut); …
Re: performance of boost asio and ACE
Programming
Software Development
13 Years Ago
by alwaysLearning0
Condition variable is a mechanism to implement producer/consumer idiom. Producer will put data/job into a queue. Consumer will deque the queue and work on that data. Usually you should have one producer thread and multiple consumer threads. In your case one data preparation thread and multiple data processing threads. I haven't worked much on …
Re: performance of boost asio and ACE
Programming
Software Development
13 Years Ago
by stereomatching
Thanks a lot, multi thread is difficult but interesting
Re: Issue with Boost ASIO Acceptor
Programming
Software Development
11 Years Ago
by richieking
can you post your code here if you dont mind.? we need to read through your code.... possibly run it ourselves ok
1
2
3
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC