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

Class: Net_CDDB_Protocol_CDDBP

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

Class Overview

Net_CDDB_Protocol
   |
   --Net_CDDB_Protocol_CDDBP

Connection handler class for CDDBP protocol


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 35]
Connection handler class for CDDBP protocol

Provides a CDDBP protocol connection to a CDDB server.

  • See: CDDB_protocol.txt
  • See: Net_CDDB_HTTP


[ Top ]


Class Variables

$_buffer =

[line 51]

String buffer for recieving responses
  • Access: protected

Type:   string


[ Top ]

$_client =

[line 99]

Client name to report to CDDB server
  • Access: protected

Type:   string


[ Top ]

$_conn =

[line 43]

Connection resource to remove server
  • Access: protected

Type:   resource


[ Top ]

$_host =

[line 91]

Hostname of remote CDDB server
  • Access: protected

Type:   string


[ Top ]

$_multi_line_ident =

[line 115]

String indicating CDDB server returned a multi-line response
  • Access: protected

Type:   string


[ Top ]

$_port =

[line 75]

CDDB port to connect on
  • Access: protected

Type:   integer


[ Top ]

$_server =

[line 67]

CDDB server to connect to
  • Access: protected

Type:   string


[ Top ]

$_status_buffer =

[line 59]

String buffer for holding status line of last request
  • Access: protected

Type:   string


[ Top ]

$_user =

[line 83]

User to connect to CDDB server as
  • Access: protected

Type:   string


[ Top ]

$_version =

[line 107]

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

Type:   string


[ Top ]



Method Detail

Net_CDDB_Protocol_CDDBP (Constructor)   [line 127]

void Net_CDDB_Protocol_CDDBP( string $protocol, array $option_params)

Construct a CDDBP object

Parameters:

string   $protocol   —  DSN String
array   $option_params   — 

[ Top ]

connect   [line 171]

bool connect( )

Connect to the CDDBP server
  • Access: public

[ Top ]

connected   [line 209]

bool connected( )

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

[ Top ]

disconnect   [line 335]

bool disconnect( )

Disconnect from the CDDBP server
  • Access: public

[ Top ]

recieve   [line 307]

string recieve( )

Recieve a string response from the CDDB server
  • Access: public

[ Top ]

send   [line 226]

void send( string $query, [ $try_again = true])

Send a query to the CDDB server

If a connection has not yet been established, it will try to connect before sending any data. Otherwise, the established connection will be used.

  • Access: public

Parameters:

string   $query   — 
   $try_again   — 

[ Top ]

status   [line 321]

integer status( )

Get the integer status code the last response contained
  • 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.