There is an application server, there is an application client, on the first one a file is sent to the client. Everything works, but I would like the newsletter to be sent not to one client, but to all connected ones.
I tried through the cycle, but since the file is split during the second cycle pass, an error appears in accessing the file I wanted to do it through sleep, but I thought for a long time and realized that it would not work. Which way to look? I do not want to go away from the sockets, with them at least the main function works.
I attach the link to the GIT https://github.com/WOLF33/EasyLan-v5.git
методы отправки данных в сокет и получения их из сокета - это функции и они возвращают количество реально прочитанных/записанных данных.- kami