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 » Fri Mar 07, 2008 12:19 pm

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: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Sat Apr 05, 2008 5:16 am

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 » Wed Jun 04, 2008 3:48 am

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: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Wed Jun 11, 2008 7:26 am

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 » Sat Jun 14, 2008 12:04 pm

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: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Sun Jun 15, 2008 4:18 pm

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 » Sat Jul 12, 2008 11:40 am

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: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Tue Jul 15, 2008 10:59 am

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