Code Monkey home page Code Monkey logo

aberrantsmpp's People

Contributors

dbuenor avatar fruize avatar ikercelorrio avatar pruiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aberrantsmpp's Issues

netstandard package

Dear,

Is there any chance you can provide us with a .net standard version of this library.

Kind regards,
Brent

Wrong length constraints?

Hello!

In SmppBind class you have lenght constraints for SystemID and Password. But different SMS services allows you to set any length for password and user name.

I spent 2 days trying to understand why I cannot connect to my SMS gateway. The reason was that my password is longer than 8 symbols.

Maybe you should refuse from these constraints? What do you think?

Thank you!

Try Catch block required for dead socket when write completes.

// Send another packet..

  using (new ReadOnlyLock(_socketLock))
  {
  _SendPending = true;
  var packet = _SendQueue.Dequeue();
  _TcpClient.GetStream().BeginWrite(packet, 0, packet.Length, _CallbackWriteMethod, null);
  }

Application: ReceiverService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at System.ThrowHelper.ThrowInvalidOperationException(System.ExceptionResource)
at System.Collections.Generic.Queue`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Dequeue()
at AberrantSMPP.AsyncSocketClient.SendComplete(System.IAsyncResult)
at System.Net.LazyAsyncResult.Complete(IntPtr)
at System.Net.ContextAwareResult.CompleteCallback(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Net.ContextAwareResult.Complete(IntPtr)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

OnSubmitSmResp event not working

If the message is not segmented. SendPdu (msg); all Ok
If a message is segmented. Send (msg, SmppSarMethod. UseSmppSegmentation);
I don't get a OnSubmitSm event, OnSubmitSmResp...

SMPPCommunicator.cs
private void ProcessPduQueue(object queueStateObj)
{
...
if (_RequestsAwaitingResponse.ContainsKey(packet.SequenceNumber))
{
...
state.EventHandler.Set();
<-- Here, too, must be handled events FireEvents(packet) ?
continue;
}
}

// based on each Pdu, fire off an event
FireEvents(packet); <--- Not works always

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.