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

Class: Net_SMPP_Client

Source Location: /Net_SMPP_Client-0.4.1/Net/SMPP/Client.php

Class Overview


Net_SMPP_Client class


Author(s):

Version:

  • CVS: $Revision$

Copyright:

  • 2005 WebSprockets, LLC.

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 48]
Net_SMPP_Client class

This is a Net_Socket-based SMPP client (ESME).



[ Top ]


Class Variables

$es =

[line 116]

PEAR_ErrorStack instance

Type:   object


[ Top ]

$host =

[line 78]

Host to connect to

Type:   string


[ Top ]

$port =

[line 85]

Port to connect to

Type:   int


[ Top ]

$state =  Net_SMPP_Client::STATE_CLOSED

[line 71]

Current state of the connection

Certain commands alter the state of the connection, e.g. a non-error bind_transmitter_resp PDU changes the state to BOUND_TX. We keep track of the connection state here.


Type:   int


[ Top ]

$vendor =

[line 92]

SMPP Vendor extension to use

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 133]

void __construct( string $host, int $port)

Constructor

Parameters:

string   $host   —  SMPP host to connect to
int   $port   —  TCP port on $host to connect to

[ Top ]

accept   [line 336]

boolean accept( object $object)

Accept an object
  • Return: true if accepted, false otherwise

Parameters:

object   $object   — 

[ Top ]

bind   [line 186]

mixed bind( [ $args = array()])

Bind to SMSC

This sends the bind_transmitter SMPP command to the SMSC, and reads back the bind_transmitter_resp PDU.

  • See: Net_SMPP_Command_bind_transmitter

Parameters:

   $args   — 

[ Top ]

connect   [line 147]

mixed connect( )

Make TCP connection
  • Return: Net_Socket::connect()'s return value
  • See: Net_Socket::connect()

[ Top ]

disconnect   [line 165]

mixed disconnect( )

Disconnect TCP connection
  • Return: Net_Socket::disconnect()'s return value
  • See: Net_Socket::disconnect()

[ Top ]

readPDU   [line 264]

mixed readPDU( )

Read a PDU from the SMSC
  • Return: Object containing response PDU or PEAR_Error
  • Since: 0.0.1dev2

[ Top ]

sendPDU   [line 233]

mixed sendPDU( object $pdu)

Send a PDU to the SMSC
  • Return: Net_Socket::write()'s return value
  • See: Net_Socket::write()

Parameters:

object   $pdu   —  PDU to send

[ Top ]

unbind   [line 210]

mixed unbind( )

Unbind from SMSC

This sends the unbind SMPP command to the SMSC

  • See: Net_SMPP_Command_unbind

[ Top ]


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