Net_CDDB
[ class tree: Net_CDDB ] [ index: Net_CDDB ] [ all elements ]

Class: Net_CDDB_Request_HTTP

Source Location: /Net_CDDB-0.3.0/CDDB/Request/Http.php

Class Overview

Net_CDDB_Request
   |
   --Net_CDDB_Request_HTTP

Class to listen for, process, and respond to HTTP CDDB requests


Methods


Inherited Variables

Inherited Methods

Class: Net_CDDB_Request

Net_CDDB_Request::mode()
Define the mode the server listens in (listen for a single request, HTTP style, or listen for multiple requests, CDDBD style)

Class Details

[line 34]
Class to listen for, process, and respond to HTTP CDDB requests

The Net_CDDB_Server class can listen for and respond to multiple types of requests depending on the driver it uses. This particular driver listens for CDDB commands encapsulated in the HTTP protocol and provides a method to respond to those CDDB commands/requests.



[ Top ]


Method Detail

__construct (Constructor)   [line 54]

Net_CDDB_Request_HTTP __construct( string $dsn, [array $options = array()])

Constructor (PHP v5.x)
  • Access: public

Parameters:

string   $dsn     
array   $options     

[ Top ]

Net_CDDB_Request_HTTP (Constructor)   [line 41]

Net_CDDB_Request_HTTP Net_CDDB_Request_HTTP( $dsn, [ $options = array()])

Constructor (PHP v4.x)

Parameters:

   $dsn     
   $options     

[ Top ]

face   [line 125]

string face( )

Tell what interface alias this request class handles (http, cddb, etc.)
  • Access: public

[ Top ]

listen   [line 67]

array listen( )

Listen for incoming CDDB commands (i.e.: Read and parse the $_REQUEST['cmd'], $_REQUEST['proto'], and $_REQUEST['hello'] variables)

[ Top ]

mode   [line 114]

string mode( )

Tell what request mode this driver operates in

Overrides Net_CDDB_Request::mode() (Define the mode the server listens in (listen for a single request, HTTP style, or listen for multiple requests, CDDBD style))
[ Top ]

respond   [line 94]

void respond( integer $status, string $message, [string $data = ''], [boolean $terminating = false])

Respond to a CDDB command with a status code, status message, and data string (i.e.: print to stdout)

Parameters:

integer   $status     Status code (i.e.: 200)
string   $message     Status message (i.e.: 'OK record follows...')
string   $data     The data to send back to the client
boolean   $terminating     Whether or not to terminate the data with a '.'

[ Top ]


Documentation generated on Sun, 25 Feb 2007 14:00:17 -0500 by phpDocumentor 1.3.0. PEAR Logo Copyright © PHP Group 2004.