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

Class: Net_CDDB_Protocol_CDDBP

Source Location: /Net_CDDB-0.3.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: Net_CDDB_Protocol

Net_CDDB_Protocol::remote()
Tell whether or not a protocol acts on a remote resource

Class Details

[line 40]
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 56]

String buffer for recieving responses
  • Access: protected

Type:   string


[ Top ]

$_client =

[line 104]

Client name to report to CDDB server
  • Access: protected

Type:   string


[ Top ]

$_conn =

[line 48]

Connection resource to remove server
  • Access: protected

Type:   resource


[ Top ]

$_host =

[line 96]

Hostname of remote CDDB server
  • Access: protected

Type:   string


[ Top ]

$_multi_line_ident =

[line 120]

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

Type:   string


[ Top ]

$_port =

[line 80]

CDDB port to connect on
  • Access: protected

Type:   integer


[ Top ]

$_server =

[line 72]

CDDB server to connect to
  • Access: protected

Type:   string


[ Top ]

$_status_buffer =

[line 64]

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

Type:   string


[ Top ]

$_user =

[line 88]

User to connect to CDDB server as
  • Access: protected

Type:   string


[ Top ]

$_version =

[line 112]

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

Type:   string


[ Top ]



Method Detail

Net_CDDB_Protocol_CDDBP (Constructor)   [line 132]

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 176]

bool connect( )

Connect to the CDDBP server
  • Access: public

[ Top ]

connected   [line 214]

bool connected( )

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

[ Top ]

disconnect   [line 340]

bool disconnect( )

Disconnect from the CDDBP server
  • Access: public

[ Top ]

recieve   [line 312]

string recieve( )

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

[ Top ]

send   [line 231]

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 326]

integer status( )

Get the integer status code the last response contained
  • Access: public

[ Top ]


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