<?xml version="1.0"?><phpdoc><class name="Net_Socket" extends="PEAR" undoc="false" access="private"><file>c:/www/apache/doc2//pear/Net/Socket.php</file><doc><author email="ssb@fast.no">Stig Bakken</author><author email="chuck@horde.org">Chuck Hagenbuch</author><inherited src="Array"/><description/><shortdescription>Generalized Socket class. More docs to be written.</shortdescription><version>0.2</version><since>PHP 4.0.2</since></doc><function name="Net_Socket" undoc="false" access="public"><doc><return type="void"/><description/><shortdescription>Constructs a new Net_Socket object.</shortdescription></doc></function><function name="connect" undoc="false" access="public"><doc><parameter name="$addr" type="string">address or host name</parameter><parameter name="$port" type="int">port number</parameter><parameter name="$persistent" default="false" type="boolean">(optional) whether the connection is&#x0a;persistent (kept open between requests by the web server)</parameter><parameter name="$timeout" default="false" type="boolean">(optional) how long to wait for data</parameter><return name="" type="mixed">true on success or error object</return><description>already connected, it disconnects and connects again.</description><shortdescription>Connect to the specified port. If called when the socket is</shortdescription></doc></function><function name="disconnect" undoc="false" access="public"><doc><return name="" type="mixed">true on success or an error object otherwise</return><description/><shortdescription>Disconnects from the peer, closes the socket.</shortdescription></doc></function><function name="isBlocking" undoc="false" access="public"><doc><return name="" type="bool">the current blocking mode.</return><description/><shortdescription>Find out if the socket is in blocking mode.</shortdescription></doc></function><function name="setBlocking" undoc="false" access="public"><doc><parameter name="$mode" type="bool">for blocking sockets, false for nonblocking</parameter><return type="void"/><description>not. A read call to a non-blocking socket will return immediatelyif there is no data available, whereas it will block until thereis data for blocking sockets.</description><shortdescription>Sets whether the socket connection should be blocking or</shortdescription></doc></function><function name="read" undoc="false" access="public"><doc><parameter name="$size" undoc="true"/><return type="void"/><description>and has the added benefit of getting everything in one fread()chunk; if you know the size of the data you&amp;apos;re gettingbeforehand, this is definitely the way to go.</description><shortdescription>Read a specified amount of data. This is guaranteed to return,</shortdescription></doc></function><function name="writeLine" undoc="false" access="public"><doc><parameter name="$data" undoc="true"/><return name="" type="mixed">fputs result, or an error</return><description/><shortdescription>Write a line of data to the socket, followed by a trailing &amp;quot;\r\n&amp;quot;.</shortdescription></doc></function><function name="readLine" undoc="false" access="public"><doc><return type="void"/><description>comes first. Strips the trailing newline from the returned data.</description><shortdescription>Read until either the end of the socket or a newline, whichever</shortdescription></doc></function><function name="readAll" undoc="false" access="public"><doc><return type="void"/><description>socket is in blocking mode until the socket closes.</description><shortdescription>Read until the socket closes. THIS FUNCTION WILL NOT EXIT if the</shortdescription></doc></function><function name="gets" undoc="true" access="private"><doc><parameter name="$size" undoc="true"/><return type="void"/></doc></function><function name="write" undoc="true" access="private"><doc><parameter name="$data" undoc="true"/><return type="void"/></doc></function><function name="eof" undoc="true" access="private"><doc><return type="void"/></doc></function><function name="readByte" undoc="true" access="private"><doc><return type="void"/></doc></function><function name="readWord" undoc="true" access="private"><doc><return type="void"/></doc></function><function name="readInt" undoc="true" access="private"><doc><return type="void"/></doc></function><function name="readString" undoc="true" access="private"><doc><return type="void"/></doc></function><function name="readIPAddress" undoc="true" access="private"><doc><return type="void"/></doc></function><variable name="$fp" access="private" type="string">null<doc><description/><shortdescription>Socket file pointer. *</shortdescription></doc></variable><variable name="$blocking" access="private" type="boolean">true<doc><description/><shortdescription>Whether the socket is blocking. *</shortdescription></doc></variable><variable name="$persistent" access="private" type="unknown"><doc><description/><shortdescription>Whether the socket is persistant. *</shortdescription></doc></variable><variable name="$addr" access="private" type="string">&amp;apos;&amp;apos;<doc><description/><shortdescription>The IP address to connect to. *</shortdescription></doc></variable><variable name="$port" access="private" type="integer"><doc><description/><shortdescription>The port number to connect to. *</shortdescription></doc></variable><variable name="$timeout" access="private" type="boolean">false<doc><description>assuming there&amp;apos;s no more data. *</description><shortdescription>Number of seconds to wait on socket connections before</shortdescription></doc></variable><variable name="$lineLength" access="private" type="integer">2048<doc><description>readAll(). *</description><shortdescription>Number of bytes to read at a time in readLine() and</shortdescription></doc></variable><inherited src="PEAR" type="functions"><element>pear</element><element>_pear</element><element>iserror</element><element>_pear_call_destructors</element></inherited><inherited src="PEAR" type="variables"><element>$_debug</element></inherited><inherited src="PEAR" type="consts"><element>pear_error_return</element><element>pear_error_print</element><element>pear_error_trigger</element><element>pear_error_die</element><element>pear_error_callback</element><element>php_bindir</element><element>pear_install_dir</element><element>pear_extension_dir</element></inherited><path><parent>PEAR</parent></path><baseclass>PEAR</baseclass></class></phpdoc>
