How can I have multiple connections on the same port in boost asio?
Do I need to have a socket for each client?
When a new connection is accepted, a new socket will be created for it, you do not need to create sockets yourself. Have you checked the examples in the manual? Like a chat server, I think it handles multiple connections.
Make asio * socket vector. Then work with it. For each client you want to accept, release a new socket. Hope for this job!
Source: https://habr.com/ru/post/1379619/More articles:Handling Android back button on mobile site without using Phonegap - javascripttellg () returns a negative answer - c ++First get the value in the mapping table in Entity Framework code - entity-frameworkEclipse mac osx: launch failed, binary not found - caudio lab for python 2.7 - pythonHow to set data type in raw SQLiteDatabase query binding? - androidhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1379621/prevent-c-events-to-vb6-code-to-create-a-dead-lock&usg=ALkJrhi38c-WKrhRaW04ZQtjwvGv7MbcAgHow to get an answer from "ping -c 1 example.com"? - perlIs there a comparison tool that can handle UTF-8 characters? - diffHow to ping a remote machine with Qt - qtAll Articles