Questions tagged [ASIO] (7)

0
answer

How to pass the socket handler is not compiled or asynchronous TCP server, boost::asio?

Write asynchronous echo TCP server that must handle multiple clients. I imagine all this: the tcp_server instance waits for a connection and when connected to it - creates an object of class session, and provides the socket with the connection to the link, well, there is the socket travels to the handlers and the informatio...
Curt.Bosco64 asked March 17th 20 at 12:10
0
answer

How to write an asynchronous server for 2 client boost::asio?

Already the third day trying to write while using a e asynchronous server which will be easy to work with two clients at the same time, where to start? Asynchronous server to 1 client I wrote, but the greater number are unable.
Heidi_Koepp2 asked March 17th 20 at 11:59
1
answer

Async_accept returns an error in boost::asio?

Writing asynchronous TCP server, but I have a startup, there is Error "acceptor", that is, in accept_handler returns an error, what to do? error.message() says "Operation I/o was aborted because of a thread exit or an application request".#include <iostream> #include <boost/asio.hpp> #include <string> #inc...
edmond.Upt asked March 17th 20 at 11:32
0
answer

Problem with socket.async_accept() in boost::asio?

Writing asynchronous TCP server#include <iostream> #include <boost/asio.hpp> #include <string> #include <clocale> using namespace boost::asio; using namespace std; class tcp_server { private: ip::tcp::socket socket; ip::tcp::acceptor acceptor; int clientCount = 0; int port = 0; enum { max_leng...
Alfred_Breitenbe asked March 17th 20 at 11:31
1
answer

Boost::asio how to write a TCP server for 2 client?

I need 2 clients to send data to the server and the server forwards the data from the 1st client to the 2nd and Vice versa, how to do it? Where to read? Do write a simple online game for two, where you can read about it?
linwood.Nicolas asked March 17th 20 at 10:29
2
answers

Windows and Mac cross-platform sound

We need to develop applications that work with sound, critical to delays. The task is complicated by the fact that to work as it should on the PC and on the Mac target audience is divided roughly in half. Accordingly, it was decided to make the app cross platform. To Win the work is expected through ASIO, there are no oth...
mertie_Hamill49 asked October 10th 19 at 10:37
1
answer

Send email via SMTP using SSL?

Use boost::asio for sending email via normal SMTP on the network, there are examples and everything works. And, as with TLS/SSL to send mail in any way will not understand. Specifically, through Google trying to send a letter.
Alejandrin_Mayert asked October 3rd 19 at 14:00
3
answers

Cheap sound card with ASIO?

advise cheap sound card with ASIO
Roger32 asked October 3rd 19 at 09:57
1
answer

How to put sound browser in Windows 7 through ASIO?

In Windows, all sounds from the browser (as well as many other programs) is forced to go through a regular mixer, which is significantly spoil the sound quality. Are there any ways to send sound directly to the soundcard through ASIO? Card with native ASIO.
Juliana.Rice asked September 16th 19 at 16:09
1
answer

How to make a function start to work in asynchronous mode and give the result in the callback (tornado)?

Suppose there is some method that works for very long, it blocks all output to tornado, wrap with .coroutine, respectively, helps to make this method asynchronous. How to make so that it worked in the background, and the result returned to callback function? Just curious, how to write async libraries for tornado or asynhio?...
ansel.Donnel asked July 23rd 19 at 16:34