sockets.errors.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 51 行
HTML
51 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Socket Errors</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sockets.examples.html">Examples</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.sockets.html">Socket Functions</a></div> <div class="up"><a href="book.sockets.html">Sockets</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Socket Errors</h1> <p class="para"> The socket extension was written to provide a usable interface to the powerful BSD sockets. Care has been taken that the functions work equally well on Win32 and Unix implementations. Almost all of the sockets functions may fail under certain conditions and therefore emit an <b><tt>E_WARNING</tt></b> message describing the error. Sometimes this doesn't happen to the desire of the developer. For example the function <a href="function.socket-read.html" class="function">socket_read()</a> may suddenly emit an <b><tt>E_WARNING</tt></b> message because the connection broke unexpectedly. It's common to suppress the warning with the <i>@</i>-operator and catch the error code within the application with the <a href="function.socket-last-error.html" class="function">socket_last_error()</a> function. You may call the <a href="function.socket-strerror.html" class="function">socket_strerror()</a> function with this error code to retrieve a string describing the error. See their description for more information. </p> <blockquote><p><b class="note">Note</b>: The <b><tt>E_WARNING</tt></b> messages generated by the socket extension are in English though the retrieved error message will appear depending on the current locale (<b><tt>LC_MESSAGES</tt></b>): <div class="example-contents"><div class="phpcode"><code><span style="color: #000000">Warning - socket_bind() unable to bind address [98]: Die Adresse wird bereits verwendet</span></code></div> </div> <br /> </p></blockquote></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sockets.examples.html">Examples</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.sockets.html">Socket Functions</a></div> <div class="up"><a href="book.sockets.html">Sockets</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?