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.
| [reply] |