Home  >  Article  >  Backend Development  >  php socket problem

php socket problem

WBOY
WBOYOriginal
2016-12-01 01:27:54877browse

How to judge whether the server has sent data back? If the connection to the server is successful, but there is no send data back in the server-side code (that is, the send function is blocked and does not return data), how should the client judge? Not counting the situation that is judged directly by comparing the returned data or the read data is empty!

Reply content:

How to judge whether the server has sent data back? If the connection to the server is successful, but there is no send data back in the server-side code (that is, the send function is blocked and does not return data), how should the client judge? Not counting the situation that is judged directly by comparing the returned data or the read data is empty!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn