transport endpoint is already connected что делать

Transport endpoint is not connected

My code is this but not working

unable to read from socket [107]: Transport endpoint is not connected PHP Stack trace: Buffer =
Last Error = 107Transport endpoint is not connected

transport endpoint is already connected что делать. Смотреть фото transport endpoint is already connected что делать. Смотреть картинку transport endpoint is already connected что делать. Картинка про transport endpoint is already connected что делать. Фото transport endpoint is already connected что делать

3 Answers 3

You have to accept a connection first! Inside your while() loop, do another while() like this:

It should work, as you intend.

OK, so the client socket is not connected.

transport endpoint is already connected что делать. Смотреть фото transport endpoint is already connected что делать. Смотреть картинку transport endpoint is already connected что делать. Картинка про transport endpoint is already connected что делать. Фото transport endpoint is already connected что делать

As I wrote in a comment to previous answer, you can find fine example of solving this problem on PHP.net Examples Page. In the main article you’ll find a good example, how to make a listener without error, you’re refering to, for one client and in javier’s notice below, how to have the same for multi-client purpose.

Not the answer you’re looking for? Browse other questions tagged php sockets websocket or ask your own question.

Related

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.11.12.40742

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *