jsmpp - Sending 2 submit _sm in one SMPP request -
how can send 2 differents submit_sm in 1 smpp request. it's 2 differents submit_sm encapsulate in 1 smpp request
as following trace:
smpp 436 smpp submit_sm (short message reassembled), submit_sm (short message reassembled)
short message peer peer, command: submit_sm, seq: 1093, len: 191 gsm short message service user data short message peer peer, command: submit_sm, seq: 1094, len: 191 gsm short message service user data
what see in trace "smpp request" 1 tcp packet containing multi smpp packets of command type "submit_sm".
your os responsible buffering , it's not uncommon since mtu 1 tcp packet 1500 bytes , depending on paylaod, submit_sm packet less 200 bytes.
so depends how interact network socket. if flush after each smpp packet write it, 1 submit_sm in 1 tcp packet. otherwise buffered unti mtu reached.
in jsmpp, default implementation of pdu sender flushes output stream after each smpp packet (see https://github.com/uudashr/jsmpp/blob/master/jsmpp/src/main/java/org/jsmpp/defaultpdusender.java#l216).
you can create smppsession providing own pdusender implementation doesn't flush after each packet (see https://github.com/uudashr/jsmpp/blob/master/jsmpp/src/main/java/org/jsmpp/session/smppsession.java#l124).
Comments
Post a Comment