w3-tools.com - Free Webmaster Tools and Resources
 
w3-tools.com - Free Webmaster Tools and Resources
 Free Webmaster Tools and Resources

 



PEAR Manual

This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.

PEAR Manual

PEAR Manual

Net_Socket

Table of Contents
Net_Socket::connect() -- connects to a server
Net_Socket::disconnect() -- disconnects from a server
Net_Socket::eof() -- test for end-of-file
Net_Socket::gets() -- retrieve a string
Net_Socket::getStatus() -- retrieve information about a connection
Net_Socket::isBlocking() -- check for blocking mode
Net_Socket::read() -- retrieve data
Net_Socket::readAll() -- retrieve data until connection closes
Net_Socket::readByte() -- read a byte
Net_Socket::readInt() -- read an integer
Net_Socket::readIPAddress() -- read an IP-address
Net_Socket::readLine() -- retrieve data until line end
Net_Socket::readString() -- read a string
Net_Socket::readWord() -- read a word
Net_Socket::setBlocking() -- sets blocking mode
Net_Socket::setTimeout() -- sets timeout
Net_Socket::write() -- write data
Net_Socket::writeLine() -- write data including EOL
Example -- using Net_Socket

Net_Socket provides a generic API for communication over TCP/IP-sockets.

Newsletter

Join to our newsletter and receive news and updates about our site.
Your name: 
E-mail address: 
Action: 
 

Hosted by

Search

Google
Web w3-tools.com

Links

  What is my IP? Find your IP address!     Valid XHTML 1.0 Transitional  
Copyright © 2006. by w3-tools.com. All rights reserved