Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Link SmppSession and SmppSessionHandler #110

Open
pgoergler opened this issue Jul 15, 2015 · 0 comments
Open

Link SmppSession and SmppSessionHandler #110

pgoergler opened this issue Jul 15, 2015 · 0 comments

Comments

@pgoergler
Copy link

Hello,

I have and DefaultSmppClient connected to an SMSC that delegate pdu received to an SmppSessionHandler.
I would like to "qualify" those received Pdu with the SmppSession.
ie: I would like to do in the SmppSessionHandler:

public PduResponse firePduRequestReceived(PduRequest pduRequest) {
    pduRequest.setFromSession(theSmppSession);
    // do some work
}

For a DefaultSmppServer, i have found how to do that, because there is a SmppSession.serverReady(SmppSessionHandler) method (which is called in the SmppServerHandler.sessionCreated())

But how can i do the same with a DefaultSmppClient ?
It could be great if i can set the SmppSessionHandler after the creation of the session, but before the bind response was sent.

Maybe it could be usefull that SmppSessionHandle "knows" for which SmppSession it handles pdu ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant