Overview

Packages

  • None
  • thrift
    • transport

Classes

  • TBufferedTransport
  • TFramedTransport
  • THttpClient
  • TMemoryBuffer
  • TNullTransport
  • TPhpStream
  • TSocket
  • TSocketPool
  • TTransport
  • Overview
  • Package
  • Class
  • Tree

Class TTransport

Base interface for a transport agent.

Direct known subclasses

TBufferedTransport, TFramedTransport, THttpClient, TMemoryBuffer, TNullTransport, TPhpStream, TSocket

Indirect known subclasses

TSocketPool
Abstract
Package: thrift\transport
Author: Mark Slee mcslee@facebook.com
Located at Horde/Thrift/thrift_root/transport/TTransport.php
Methods summary
abstract public boolean
# isOpen( )

Whether this transport is open.

Whether this transport is open.

Returns

boolean
true if open
abstract public
# open( )

Open the transport for reading/writing

Open the transport for reading/writing

Throws

TTransportException
if cannot open
abstract public
# close( )

Close the transport.

Close the transport.

abstract public string
# read( integer $len )

Read some data into the array.

Read some data into the array.

Parameters

$len
How much to read

Returns

string
The data that has been read

Throws

TTransportException
if cannot read any more data
public string
# readAll( mixed $len )

Guarantees that the full amount of data is read.

Guarantees that the full amount of data is read.

Returns

string
The data, of exact length

Throws

TTransportException
if cannot read data
abstract public
# write( string $buf )

Writes the given data out.

Writes the given data out.

Parameters

$buf
The data to write

Throws

TTransportException
if writing fails
public
# flush( )

Flushes any pending data out of a buffer

Flushes any pending data out of a buffer

Throws

TTransportException
if a writing error occurs
API documentation generated by ApiGen