简体   繁体   English

套接字发送错误,管道破裂

[英]Socket Send error as Broken Pipe

From A TCP client when i call the send to server. 当我调用发送到服务器时从一个TCP客户端。 It is giving Broken Pipe error. 它给出了“管道破裂”错误。

A broken pipe occurs whenever you try to write data to a pipe but all of the readable ends of the pipe have closed. 每当您尝试将数据写入管道但管道的所有可读端均已关闭时,就会发生管道破裂。 In your case, it sounds like the server has closed the connection. 就您而言,听起来服务器已关闭连接。 To see what caused the problem, call perror or strerror. 要查看导致问题的原因,请致电perror或strerror。

A hint would be that the other end of the connection must be closed. 提示连接的另一端必须关闭。 Please check that part. 请检查该部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM