client_evReceiveData incorrect package break

Smpp v3.4 client

Moderator: alt

Locked
Goraciy
Posts: 7
Joined: Wed Aug 26, 2009 1:32 pm
Location: Russia

client_evReceiveData incorrect package break

Post by Goraciy » Wed Jun 09, 2010 7:13 am

Hello, has faced such problem.

Has decided to pass to the new version dll (2.10.1.0), (thanks, now speed of sending in an asynchronous mode impresses).

In old version (2.6.5.0) event client_evReceiveData
The variable "data" always began with Header a package, that is
0x0000001A800000040000000008A2821831383939343833393900

In the new version at a great speed of sending the package can break in any place if the size of the data exceeds 1024 byte, that is
Can begin with 0х1383939343833393900

If can, correct it, please, thanks.
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Sun Jul 04, 2010 8:21 pm

Event evReceiveData raised when any data available from network stream.
Sometimes SMSC sends (or client receives) one SMPP packet in two or more chunks.

Usualy event evReceiveData used for debug purposes. In production system I disable such events in order to increase performance.

Please use evSubmitComplete method to get whole SUBMIT_SM_RESP packet.
Locked