Net_Socket

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.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.