Example – using Net_Socket


Sending and recieving data

= new Net_Socket() ;

// open connection

// Send data including linebreak
$socket->writeLine("String with data");

// receive data until linebreak
$result $socket->readLine();

// receive a number of data
$result $socket->read(512);

// close connection
write data including EOL (Previous) Net_Traceroute (Next)
Last updated: Fri, 27 Nov 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.