Re: Combining Net_SMPP and Net_SMPP_Client?

From: Date: Sat, 17 Apr 2010 11:29:05 +0000
Subject: Re: Combining Net_SMPP and Net_SMPP_Client?
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-53428@lists.php.net to get a copy of this message
On Sat, Apr 17, 2010 at 11:22 AM, Simon Spencer <silospen@silospen.com> wrote: > I just took over as lead maintainer of Net_SMPP. I was looking at > Net_SMPP_Client and I'm confused as to why these are separate. > Net_SMPP is essentially just creating PDU packets and parsing PDU > packets, something which I believe is useless without a client which > actually does the sending and receiving of SMPP PDUs. Net_SMPP_Client > is woefully inadequate also, it only allows a user to bind as > transmitter rather than a receiver/transceiver (so you can only send > PDUs, not get them) and it doesn't implement a lot of the SMPP 3.4 > protocol, such as retransmission timers, etc. At best, I would > describe it as a (poor) example of using Net_SMPP and not a separate > PEAR package! Sure, a user could use Net_SMPP_Client as a base to > build their own client, but I thought the point of PEAR was to promote > reuse of code! > > Could anyone explain the logic behind keeping these separate? > > I uploaded a work in progress version of my Client implementation to > 2ÐณÑCX‡ú³ß > ²ùhttp://svn.php.net/viewvc/pear/packages/Net_SMPP/trunk/docs/examples/ > I apologise - it does not currently conform to PEAR standards. I'm > working on it (and trying to get the PEAR standards hammered into my > coding style!), soon it will and it'll be accompanied by full > documentation and unit tests. I've tried to implement most of the SMPP > 3.4 spec, but like I said, I'm working on it. > > My proposal is that Net_SMPP_Client is deleted and the code becomes > part of Net_SMPP's example section. I'm very interested in opinions on > my thoughts :) > Hi, maybe you want to create a full pear2 package instead and we mark Net_SMPP and Net_SMPP_Client deprecated when you are done? I think that would be the better go ahead here. :) The code really looks like it needs a lot of work -- aside from CS -- it seems to be PHP4-compatible and so on. Let us know if you need more pointers. Till

« previous php.pear.dev (#53428) next »