Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

Classes

  • Akismet
  • SocketWriteRead
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class SocketWriteRead

Utility class used by Akismet

This class is used by Akismet to do the actual sending and receiving of data. It opens a connection to a remote host, sends some data and the reads the response and makes it available to the calling program.
The code that makes up this class originates in the Akismet WordPress plugin, which is available on the Akismet website.

N.B. It is not necessary to call this class directly to use the Akismet class. This is included here mainly out of a sense of completeness.

Package: akismet
Copyright: Alex Potsides, http://www.achingbrain.net
License: BSD License
Author: Alex Potsides
Version: 0.1
Link: http://www.achingbrain.net/
Located at wa-apps/blog/plugins/akismet/vendors/Akismet.class.php
Methods summary
public
# __construct( string $host, integer $port, string $request, integer $responseLength = 1160 )

Parameters

$host
string
$host The host to send/receive data.
$port
integer
$port The port on the remote host.
$request
string
$request The data to send.
$responseLength
integer
$responseLength The amount of data to read. Defaults to 1160 bytes.
public
# send( )

Sends the data to the remote host.

Sends the data to the remote host.

Throws

Exception
An exception is thrown if a connection cannot be made to the remote host.
public string
# getResponse( )

Returns the server response text

Returns the server response text

Returns

string
public integer
# getErrorNumner( )

Returns the error number

Returns the error number

If there was no error, 0 will be returned.

Returns

integer
public string
# getErrorString( )

Returns the error string

Returns the error string

If there was no error, an empty string will be returned.

Returns

string
Properties summary
private mixed $host
#
private mixed $port
#
private mixed $request
#
private mixed $response
#
private mixed $responseLength
#
private mixed $errorNumber
#
private mixed $errorString
#
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0