downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/book.sockets.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/refs.remote.other.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'book.sockets.php',
   
1 => 'Sockets',
  ),
 
'up' =>
  array (
   
0 => 'refs.remote.other.php',
   
1 => 'Other Services',
  ),
 
'prev' =>
  array (
   
0 => 'function.snmpwalkoid.php',
   
1 => 'snmpwalkoid',
  ),
 
'next' =>
  array (
   
0 => 'intro.sockets.php',
   
1 => 'Introduction',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
 <h1 class="title">Sockets</h1>
 
 
 
 
 
 







 






 







 






 







<ul class="chunklist chunklist_book"><li><a href="intro.sockets.php">Introduction</a></li><li><a href="sockets.setup.php">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="sockets.requirements.php">Requirements</a></li><li><a href="sockets.installation.php">Installation</a></li><li><a href="sockets.configuration.php">Runtime Configuration</a></li><li><a href="sockets.resources.php">Resource Types</a></li></ul></li><li><a href="sockets.constants.php">Predefined Constants</a></li><li><a href="sockets.examples.php">Examples</a></li><li><a href="sockets.errors.php">Socket Errors</a></li><li><a href="ref.sockets.php">Socket Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.socket-accept.php">socket_accept</a> — Accepts a connection on a socket</li><li><a href="function.socket-bind.php">socket_bind</a> — Binds a name to a socket</li><li><a href="function.socket-clear-error.php">socket_clear_error</a> — Clears the error on the socket or the last error code</li><li><a href="function.socket-close.php">socket_close</a> — Closes a socket resource</li><li><a href="function.socket-connect.php">socket_connect</a> — Initiates a connection on a socket</li><li><a href="function.socket-create-listen.php">socket_create_listen</a> — Opens a socket on port to accept connections</li><li><a href="function.socket-create-pair.php">socket_create_pair</a> — Creates a pair of indistinguishable sockets and stores them in an array</li><li><a href="function.socket-create.php">socket_create</a> — Create a socket (endpoint for communication)</li><li><a href="function.socket-get-option.php">socket_get_option</a> — Gets socket options for the socket</li><li><a href="function.socket-getpeername.php">socket_getpeername</a> — Queries the remote side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its type</li><li><a href="function.socket-getsockname.php">socket_getsockname</a> — Queries the local side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its type</li><li><a href="function.socket-last-error.php">socket_last_error</a> — Returns the last error on the socket</li><li><a href="function.socket-listen.php">socket_listen</a> — Listens for a connection on a socket</li><li><a href="function.socket-read.php">socket_read</a> — Reads a maximum of length bytes from a socket</li><li><a href="function.socket-recv.php">socket_recv</a> — Receives data from a connected socket</li><li><a href="function.socket-recvfrom.php">socket_recvfrom</a> — Receives data from a socket whether or not it is connection-oriented</li><li><a href="function.socket-select.php">socket_select</a> — Runs the select() system call on the given arrays of sockets with a specified timeout</li><li><a href="function.socket-send.php">socket_send</a> — Sends data to a connected socket</li><li><a href="function.socket-sendto.php">socket_sendto</a> — Sends a message to a socket, whether it is connected or not</li><li><a href="function.socket-set-block.php">socket_set_block</a> — Sets blocking mode on a socket resource</li><li><a href="function.socket-set-nonblock.php">socket_set_nonblock</a> — Sets nonblocking mode for file descriptor fd</li><li><a href="function.socket-set-option.php">socket_set_option</a> — Sets socket options for the socket</li><li><a href="function.socket-shutdown.php">socket_shutdown</a> — Shuts down a socket for receiving, sending, or both</li><li><a href="function.socket-strerror.php">socket_strerror</a> — Return a string describing a socket error</li><li><a href="function.socket-write.php">socket_write</a> — Write to a socket</li></ul></li></ul></div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites