in reply to Re: SMPP client
in thread SMPP client

Sorry, still not quite get the idea of your example. Is this the server code? How does it related to the APIs in Net::SMPP? What will be a smpp client look like? Thanks Sam

Replies are listed 'Best First'.
Re^3: SMPP client
by NetWallah (Canon) on Dec 16, 2005 at 05:52 UTC
    My suggestion was to copy some of the code from the Net/SMPP.pm module into your server script. You would NOT be useing NET::SMPP in the server code, so it is not related to the API.

    Since you already have a mechanism (accept from IO::Socket) to receive packets, and all you requested was how to decode them, you could pass the received packet into the sample sub above, and have it decoded for you.

    In a similar manner, you would need to construct a response packet, and send it to the client.

    Hope this helps. Not having studied the SMPP protocol, I could not estimate the level of difficulty, or advise whether this is a wise direction. I was simply attempting to answer your direct question of how you whould go about doing such a thing.

         You're just jealous cause the voices are only talking to me.

         No trees were killed in the sending of this message.    However, a large number of electrons were terribly inconvenienced.