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

Class: Net_CDDB_Protocol_HTTP

Source Location: /Net_CDDB-0.1.0/CDDB/Protocol/Http.php

Class Overview

Net_CDDB_Protocol
   |
   --Net_CDDB_Protocol_HTTP

Connection class for CDDB access using HTTP wrappers


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 33]
Connection class for CDDB access using HTTP wrappers


[ Top ]


Class Variables

$_buffer =

[line 41]

String buffer to store response
  • Access: protected

Type:   string


[ Top ]

$_client =

[line 97]

Client string to report to CDDB server
  • Access: protected

Type:   string


[ Top ]

$_host =

[line 89]

Hostname to report to CDDB server
  • Access: protected

Type:   string


[ Top ]

$_port =

[line 73]

HTTP port to connect on ( 80 )
  • Access: protected

Type:   integer


[ Top ]

$_request_uri =

[line 57]

URI to use access CGI program with ( /~cddb/cddb.cgi )
  • Access: protected

Type:   string


[ Top ]

$_server =

[line 65]

HTTP server to connect to ( freedb.org )
  • Access: protected

Type:   string


[ Top ]

$_status_buffer =

[line 49]

Integer buffer to store HTTP response ( 200 OK, etc. )
  • Access: protected

Type:   integer


[ Top ]

$_user =

[line 81]

Username to report to CDDB server
  • Access: protected

Type:   string


[ Top ]

$_version =

[line 105]

Client version string to report to CDDB server
  • Access: protected

Type:   string


[ Top ]



Method Detail

Net_CDDB_Protocol_HTTP (Constructor)   [line 116]

void Net_CDDB_Protocol_HTTP( string $protocol, array $option_params)

Construct a Net_CDDB_HTTP protocol object
  • Access: public

Parameters:

string   $protocol   —  DSN string
array   $option_params   —  An array of options/parameters

[ Top ]

connect   [line 141]

bool connect( )

Establish a connection to the HTTP server
  • Access: public

[ Top ]

connected   [line 153]

bool connected( )

Tell whether or not a connection has been established already
  • Access: public

[ Top ]

disconnect   [line 234]

bool disconnect( )

Disconnect from the server
  • Access: public

[ Top ]

recieve   [line 210]

string recieve( )

Receive a response after issuing a command with send()
  • See: Net_CDDB_HTTP::send()
  • Access: public

[ Top ]

send   [line 167]

bool send( string $query)

Send a query to the HTTP CDDB server

Parameters:

string   $query   — 

[ Top ]

status   [line 222]

int status( )

Return the status code from the last request
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:39:30 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.