Code Monkey home page Code Monkey logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
What is values on submit_sm_resp you need to use?

it only has:
1. command_length (dynamically change based on the PDU size)
2. command_id (it always submit_sm_resp)
3. command_status (it always 0, non zero will inform by throwing 
NegativeResponseException and you can 
get the command status from there)
4. sequence_number (it's protocol level, you don't need this because you don't 
know the value when you send 
submit_sm. sequence_number used to match the request-response)
5. message_id (you always have this returned by the method if the message 
submission succeed)

Original comment by [email protected] on 26 Aug 2009 at 3:19

  • Changed state: Accepted

from jsmpp.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
I'm using the command_length parameter for calculating if we'll be needing a
bandwidth upgrade or not.

Original comment by [email protected] on 26 Aug 2009 at 3:33

from jsmpp.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
You do that on application level?
Not on network level or something like network monitoring tools?

Original comment by [email protected] on 26 Aug 2009 at 4:08

from jsmpp.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
How if I create some listener that will pass the notify if there is smpp 
activity by passing the PDU dump. So you 
can debug all the sent and received PDU and you also can get the length of the 
PDU (equal to command_length)

interface ActivityListener {
    // we can write the pdu dump and also know the length pdu.length
    void onActivity(byte[] pdu, Session source);
}

Original comment by [email protected] on 26 Aug 2009 at 5:47

from jsmpp.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
Listener might be OK for now.

In the next major release, probably we can split the encoding / protocol part 
from 
the network (stream, socket) part.

TrafficHandler trafficHandler = new TrafficHandler(socketObjectWithStreams);

SubmitSmPDU pdu = new SubmitSmPDU(params...);
// OR
SubmitSmPDU pdu = new PDUBuilder()
.set(someParam)
.set(SomeOtherParam)
.buildSubmitSmPDU();

trafficHandler.submit(session, pdu);

This will help us diagnose and unit-test things in isolation.

Regards,
Shantanu

Original comment by [email protected] on 26 Aug 2009 at 6:06

from jsmpp.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
Thats nice.
What do you think, next release :-P?

Original comment by [email protected] on 26 Aug 2009 at 6:21

from jsmpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.