Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Swift_Plugins_AntiFloodPlugin
  • Swift_Plugins_BandwidthMonitorPlugin
  • Swift_Plugins_DecoratorPlugin
  • Swift_Plugins_ImpersonatePlugin
  • Swift_Plugins_LoggerPlugin
  • Swift_Plugins_MessageLogger
  • Swift_Plugins_PopBeforeSmtpPlugin
  • Swift_Plugins_RedirectingPlugin
  • Swift_Plugins_ReporterPlugin
  • Swift_Plugins_Reporters_HitReporter
  • Swift_Plugins_Reporters_HtmlReporter
  • Swift_Plugins_ThrottlerPlugin

Interfaces

  • Swift_Plugins_Decorator_Replacements
  • Swift_Plugins_Pop_Pop3Connection
  • Swift_Plugins_Reporter
  • Swift_Plugins_Sleeper
  • Swift_Plugins_Timer
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class Swift_Plugins_BandwidthMonitorPlugin

Reduces network flooding when sending large amounts of mail.

Swift_Plugins_BandwidthMonitorPlugin implements Swift_Events_SendListener, Swift_Events_CommandListener, Swift_Events_ResponseListener, Swift_InputByteStream

Direct known subclasses

Swift_Plugins_ThrottlerPlugin
Package: Swift\Plugins
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Plugins/BandwidthMonitorPlugin.php
Methods summary
public
# beforeSendPerformed( Swift_Events_SendEvent $evt )

Not used.

Not used.

Parameters

$evt

Implementation of

Swift_Events_SendListener::beforeSendPerformed()
public
# sendPerformed( Swift_Events_SendEvent $evt )

Invoked immediately after the Message is sent.

Invoked immediately after the Message is sent.

Parameters

$evt

Implementation of

Swift_Events_SendListener::sendPerformed()
public
# commandSent( Swift_Events_CommandEvent $evt )

Invoked immediately following a command being sent.

Invoked immediately following a command being sent.

Parameters

$evt

Implementation of

Swift_Events_CommandListener::commandSent()
public
# responseReceived( Swift_Events_ResponseEvent $evt )

Invoked immediately following a response coming back.

Invoked immediately following a response coming back.

Parameters

$evt

Implementation of

Swift_Events_ResponseListener::responseReceived()
public integer
# write( string $bytes )

Called when a message is sent so that the outgoing counter can be increased.

Called when a message is sent so that the outgoing counter can be increased.

Parameters

$bytes

Returns

integer

Throws

Swift_IoException

Implementation of

Swift_InputByteStream::write()
public
# commit( )

Not used.

Not used.

Throws

Swift_IoException

Implementation of

Swift_InputByteStream::commit()
public
# bind( Swift_InputByteStream $is )

Attach $is to this stream. The stream acts as an observer, receiving all data that is written. All Swift_Plugins_BandwidthMonitorPlugin::write() and Swift_Plugins_BandwidthMonitorPlugin::flushBuffers() operations will be mirrored.

Attach $is to this stream. The stream acts as an observer, receiving all data that is written. All Swift_Plugins_BandwidthMonitorPlugin::write() and Swift_Plugins_BandwidthMonitorPlugin::flushBuffers() operations will be mirrored.

Parameters

$is

Implementation of

Swift_InputByteStream::bind()
public
# unbind( Swift_InputByteStream $is )

Remove an already bound stream. 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.

Remove an already bound stream. 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.

Parameters

$is

Implementation of

Swift_InputByteStream::unbind()
public
# flushBuffers( )

Not used.

Not used.

Throws

Swift_IoException

Implementation of

Swift_InputByteStream::flushBuffers()
public integer
# getBytesOut( )

Get the total number of bytes sent to the server.

Get the total number of bytes sent to the server.

Returns

integer
public integer
# getBytesIn( )

Get the total number of bytes received from the server.

Get the total number of bytes received from the server.

Returns

integer
public
# reset( )

Reset the internal counters to zero.

Reset the internal counters to zero.

Properties summary
private integer $_out

The outgoing traffic counter.

The outgoing traffic counter.

# 0
private integer $_in

The incoming traffic counter.

The incoming traffic counter.

# 0
private array $_mirrors

Bound byte streams

Bound byte streams

# array()
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen