Questions tagged [asio]

ASIO stands for Audio Stream Input/Output, a digital audio protocol. For questions about the Boost.Asio C++ library for asynchronous I/O, use the [boost-asio] tag to avoid ambiguity.

Audio Stream Input/Output is a low-latency protocol for sending and receiving audio data from sound interfaces. It was developed by Steinberg, which offers a licensed ASIO SDK among other audio software technology such as VST plugins.


Please note that in order to avoid ambiguity, questions about Boost.Asio should be tagged with as discussed on meta.

479 questions
0
votes
0 answers

boost asio ssl_socket shutdown/close cause SIGSEGV

I add ssl on server3(asio example). In rare cases, when some clients handshake fail and timer expired at the same time, SIGSEGV happen. messages in /var/log/messages: Aborted at 1517935343 (unix time) try "date -d @1517935343" if you are using GNU…
lxgeek
  • 1,732
  • 2
  • 22
  • 33
0
votes
0 answers

c++ boost asio post requests

I need to send several post requests to my virtual machine. I get examples of packets from pcap file and then modify them to insert my data(I do it because format of data is rather strange). At first, I send an empty post request (variable none) to…
Ratel
  • 1
0
votes
1 answer

boost::asio::ssl memory leaks, even though use the boost::asio::ssl example

This is the boost::asio::ssl example, it has no memory leaks: int main(int argc, char* argv[]) { #if defined(WIN32) || defined(_WIN32) || defined(_WIN64) || defined(_WINDOWS_) _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); #endif …
simon
  • 11
  • 2
0
votes
0 answers

Boost.Asio or Libuv, which is better for large-scale Linux Servers for enterprise?(by c++)

Boost.Asio or Libuv, which is better for large-scale Linux Servers for enterprise?(by c++) The database will be PostgreSQL. And the client should be app on iPhone and Android. ps. Is golang very popular and effecient right now for Server developing?…
gpu
  • 129
  • 10
0
votes
1 answer

Dynamically send n audio sources (concurrently ) to specifc channel on ASIO device

So i have been having some fun exploring the NAudio lib. However, I'm not sure whether I am missing something using the ASIO class. Basically my requirements are the following: Dynamically output (mono) sources to an ASIO device, each source to…
0
votes
1 answer

Getting "the requested resource is in use" when using asio::async_write in single thread

Here is my code. boost::asio::async_write(*serialPort, boost::asio::buffer(*something),handler); boost::asio::async_write(*serialPort, boost::asio::buffer(*something2),handler); The above code will get an error "the requested resource is in use" …
MaxC
  • 63
  • 6
0
votes
1 answer

C# NAudio asio and wasapi

I'm using NAudio lib in C# for my audio editor project. I am using wasapi to play multiple wav files at the same time. bool useEventSync = false; AudioClientShareMode share = AudioClientShareMode.Shared; wasapiOut…
0
votes
1 answer

Boost.Asio: wrapping with different `strand`s several times

Suppose that I have two connections each having their respective strand for thread safety. Those connections are not operating alone, and they can talk to each other in some way. During this communication phase, handlers must be synchronized such…
jnbrq -Canberk Sönmez
  • 1,790
  • 1
  • 17
  • 29
0
votes
1 answer

C++ boost::asio https through proxy

So I have this code that works just fine using boost::asio to connect with ssl: Opened up Fiddler, but I don't see those connections at all. From what I've read I gathered that I must pass the requests through the proxy. So I tried that with all the…
Fox
  • 2,513
  • 2
  • 20
  • 24
0
votes
1 answer

How to create an tcp::iostream using an already existing tcp::socket?

I'm not even sure if this question makes sense but I'm trying to solve the following problem without having to rewrite large portions of code. I have a tcp server that reads and writes using a tcp::socket with the boost::asio::async_read_until and…
Jibbity jobby
  • 1,255
  • 2
  • 12
  • 26
0
votes
1 answer

boost::asio::async_read loops infinite with zero byte of received data

I am trying to write IO_Service based async TCP client where Async_write works fine but async_read runs in infinite loop . During my trial to rectify the issue i found that in all the other cases async_read just stops receiving data , it receives…
0
votes
1 answer

boost asio one to many connection

Im trying to develop an internal scanner for our infrastructure and I have started looking into boost asio to launch 254 connection at the time. I havent found any example in boost asio documentation that would point me in the right direction. I…
MAthv
  • 1
  • 1
0
votes
0 answers

c++ server design boost asio

I am skeptic at my current design of my gameserver, and am seeking for actual guidance. I am currently preallocating a fixed number of clients, with their own receive buffers in the class, preallocated. All good, until i meet a point where at…
NoobyLearner
  • 109
  • 10
0
votes
2 answers

Boost ASIO asynchronous socket with timeout

I am trying to find the proper / canonical way to implement the code below that provides a synchronous wrapper around async asio methods in order to have a timeout. The code appears to work, but none of the examples I have looked at use the boolean…
Olympionex
  • 13
  • 1
  • 5
0
votes
0 answers

ASIO drivers on Windows 10 IOT on Raspberry Pi 3

I am writing an application that processes audio intented to run on Windows 10 IOT. I want to use ASIO drivers, because of performance. The Asio4all drivers cannot be installed. Is there (already) a Windows 10 IOT Asio driver that i don't know…
real_yggdrasil
  • 1,213
  • 4
  • 14
  • 27