SubmitSpeed Not Working

Smpp v3.4 client

Moderator: alt

Locked
shuriz
Posts: 8
Joined: Thu Feb 14, 2008 7:12 am

SubmitSpeed Not Working

Post by shuriz »

Hi Alt,
I tried submitspeed according to my smsc but still i can't submit more then 3 messages per second, In my other application i can submit upto 50 messages per second with default SMSC speed.With your dll i tried every speed but still no difference,if i set very very high number like submitspeed=9999 then it submits 3 messages per second otherwise 1 message in 3 seconds.Please tell some solution about it.
alt
Site Admin
Posts: 992
Joined: Tue Apr 25, 2006 9:45 am

Post by alt »

I think problem is in the Submit method. This call is synchronous, and blocks the current thread of execution until a response is received. I have to think about BeginSubmit, EndSubmit methods and SubmitCompleted event for asynchronous process.
SANSoft
Posts: 5
Joined: Wed Jun 04, 2008 3:38 am
Location: Russia, Chelyabinsk

Post by SANSoft »

Very Great Idea!!!! In my application I need to send messages asynchronously
alt wrote:I have to think about BeginSubmit, EndSubmit methods and SubmitCompleted event for asynchronous process.
When I can test it?
alt
Site Admin
Posts: 992
Joined: Tue Apr 25, 2006 9:45 am

Post by alt »

Please try version 1.3.0.
I've added method SubmitAsync.
stevep
Posts: 30
Joined: Wed May 02, 2007 7:41 pm

Post by stevep »

Hi alt,

With the SubmitAsync, how many messages per second do you think the control is able to send now?

Steve
alt
Site Admin
Posts: 992
Joined: Tue Apr 25, 2006 9:45 am

Post by alt »

I didn't measure the speed. I think it depends on SMSC only.
stevep
Posts: 30
Joined: Wed May 02, 2007 7:41 pm

State Object OnSubmitAsyncComplete

Post by stevep »

Hi Alt,

I thought there might have been a state object that I could pass on the SubmitAsync to match the sent message with the correct response. Is this possible to do some other way?

Steve
alt
Site Admin
Posts: 992
Joined: Tue Apr 25, 2006 9:45 am

Post by alt »

Hi Steve,

You can use sequence number when you send SubmitSm object using SubmitAsync and check its response in the event evSubmitComplete by this number. You need to add a hash into you program where the key will be a sequence number and the value will be a SubmitSm object.
Locked