Class tcpconnection

Description

Located in /tcpconnection.class.php (line 16)


	
			
Direct descendents
Variable Summary
string $host
int $port
bool $ssl
Method Summary
tcpconnection __construct (string $host, int $port, [bool $ssl = false])
bool connect ()
bool connected ()
void disconnect ()
mixed read ()
mixed readbytes (int $bytes)
mixed readline ()
bool setblocking (int $mode)
bool settimeout (int $sec, [int $msec = 0])
bool write (string $data)
Variables
string $host (line 29)

The address of the server.

  • access: protected
int $port (line 35)

The port of the server.

  • access: protected
bool $ssl (line 41)

Use SSL?

  • access: protected
Methods
Constructor __construct (line 50)

Constructor

  • access: public
tcpconnection __construct (string $host, int $port, [bool $ssl = false])
  • string $host
  • int $port
  • bool $ssl

Redefined in descendants as:
connect (line 63)

Connect to the server.

  • access: public
bool connect ()
connected (line 94)

Check if the connection has been established.

  • access: public
bool connected ()
disconnect (line 80)

Disconnect from the server.

  • access: public
void disconnect ()

Redefined in descendants as:
read (line 135)

Read all data from the stream.

  • access: public
mixed read ()
readbytes (line 169)

Read a number of bytes from the stream.

  • access: public
mixed readbytes (int $bytes)
  • int $bytes
readline (line 154)

Read a line of data from the stream.

  • access: public
mixed readline ()
setblocking (line 121)

Set the mode of stream-blocking.

  • access: public
bool setblocking (int $mode)
  • int $mode
settimeout (line 106)

Set the timeout.

  • access: public
bool settimeout (int $sec, [int $msec = 0])
  • int $sec
  • int $msec
write (line 184)

Write data to the stream.

  • access: public
bool write (string $data)
  • string $data

Documentation generated on Thu, 12 Mar 2009 16:30:28 +0800 by phpDocumentor 1.4.2