PHP Класс Swift_Plugins_BandwidthMonitorPlugin, Halite

Автор: Chris Corbyn
Наследование: implements Swift_Events_SendListener, implements Swift_Events_CommandListener, implements Swift_Events_ResponseListener, implements Swift_InputByteStream
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
beforeSendPerformed ( Swift_Events_SendEvent $evt ) Not used.
bind ( Swift_InputByteStream $is ) Attach $is to this stream.
commandSent ( Swift_Events_CommandEvent $evt ) Invoked immediately following a command being sent.
commit ( ) Not used.
flushBuffers ( ) Not used.
getBytesIn ( ) : integer Get the total number of bytes received from the server.
getBytesOut ( ) : integer Get the total number of bytes sent to the server.
reset ( ) Reset the internal counters to zero.
responseReceived ( Swift_Events_ResponseEvent $evt ) Invoked immediately following a response coming back.
sendPerformed ( Swift_Events_SendEvent $evt ) Invoked immediately after the Message is sent.
unbind ( Swift_InputByteStream $is ) Remove an already bound stream.
write ( string $bytes ) Called when a message is sent so that the outgoing counter can be increased.

Описание методов

beforeSendPerformed() публичный Метод

Not used.
public beforeSendPerformed ( Swift_Events_SendEvent $evt )
$evt Swift_Events_SendEvent

bind() публичный Метод

The stream acts as an observer, receiving all data that is written. All {@link write()} and {@link flushBuffers()} operations will be mirrored.
public bind ( Swift_InputByteStream $is )
$is Swift_InputByteStream

commandSent() публичный Метод

Invoked immediately following a command being sent.
public commandSent ( Swift_Events_CommandEvent $evt )
$evt Swift_Events_CommandEvent

commit() публичный Метод

Not used.
public commit ( )

flushBuffers() публичный Метод

Not used.
public flushBuffers ( )

getBytesIn() публичный Метод

Get the total number of bytes received from the server.
public getBytesIn ( ) : integer
Результат integer

getBytesOut() публичный Метод

Get the total number of bytes sent to the server.
public getBytesOut ( ) : integer
Результат integer

reset() публичный Метод

Reset the internal counters to zero.
public reset ( )

responseReceived() публичный Метод

Invoked immediately following a response coming back.
public responseReceived ( Swift_Events_ResponseEvent $evt )
$evt Swift_Events_ResponseEvent

sendPerformed() публичный Метод

Invoked immediately after the Message is sent.
public sendPerformed ( Swift_Events_SendEvent $evt )
$evt Swift_Events_SendEvent

unbind() публичный Метод

If $is is not bound, no errors will be raised. If the stream currently has any buffered data it will be written to $is before unbinding occurs.
public unbind ( Swift_InputByteStream $is )
$is Swift_InputByteStream

write() публичный Метод

Called when a message is sent so that the outgoing counter can be increased.
public write ( string $bytes )
$bytes string