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.
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.
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?
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.