📄 intro.sockets.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Introduction</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="book.sockets.html">Sockets</a></div> <div class="next" style="text-align: right; float: right;"><a href="sockets.setup.html">Installing/Configuring</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 id="intro.sockets" class="preface"> <h1 class="title">Introduction</h1> <p class="para"> The socket extension implements a low-level interface to the socket communication functions based on the popular BSD sockets, providing the possibility to act as a socket server as well as a client. </p> <p class="para"> For a more generic client-side socket interface, see <a href="function.stream-socket-client.html" class="function">stream_socket_client()</a>, <a href="function.stream-socket-server.html" class="function">stream_socket_server()</a>, <a href="function.fsockopen.html" class="function">fsockopen()</a>, and <a href="function.pfsockopen.html" class="function">pfsockopen()</a>. </p> <p class="para"> When using these functions, it is important to remember that while many of them have identical names to their C counterparts, they often have different declarations. Please be sure to read the descriptions to avoid confusion. </p> <p class="para"> Those unfamiliar with socket programming can find a lot of useful material in the appropriate Unix man pages, and there is a great deal of tutorial information on socket programming in C on the web, much of which can be applied, with slight modifications, to socket programming in PHP. The <a href="http://www.unixguide.net/network/socketfaq/" class="link external">» Unix Socket FAQ</a> might be a good start. </p> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="book.sockets.html">Sockets</a></div> <div class="next" style="text-align: right; float: right;"><a href="sockets.setup.html">Installing/Configuring</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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -