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

Class: Net_SMPP_Client

Source Location: /Net_SMPP_Client-0.3.2/Client.php

Class Overview


Net_SMPP_Client class


Author(s):

Version:

  • CVS: $Revision: 1.1 $

Copyright:

  • 2005 WebSprockets, LLC.

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 55]
Net_SMPP_Client class

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



[ Top ]


Class Variables

$es =

[line 102]

PEAR_ErrorStack instance

Type:   object


[ Top ]

$host =

[line 64]

Host to connect to

Type:   string


[ Top ]

$port =

[line 71]

Port to connect to

Type:   int


[ Top ]

$state =  NET_SMPP_CLIENT_STATE_CLOSED

[line 57]


Type:   mixed


[ Top ]

$vendor =

[line 78]

SMPP Vendor extension to use

Type:   string


[ Top ]



Method Detail

Net_SMPP_Client (Constructor)   [line 121]

void Net_SMPP_Client( string $host, int $port)

4.x/thunk constructor

Parameters:

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

[ Top ]

__construct (Constructor)   [line 133]

void __construct( string $host, int $port)

5.x/real constructor

Parameters:

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

[ Top ]

accept   [line 337]

boolean accept( &$object, object $object)

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

Parameters:

object   $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( &$pdu, 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
   &$pdu   — 

[ 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 14:16:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.