-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a new SendRequest method to send SMPP requests synchronouslly (…
…waiting for a response).
- Loading branch information
Showing
5 changed files
with
180 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace AberrantSMPP.Exceptions | ||
{ | ||
/// <summary> | ||
/// Remote party reported an error to our request. | ||
/// </summary> | ||
[Serializable] | ||
public class SmppRemoteException : Exception | ||
{ | ||
/// <summary> | ||
/// Gets or sets the command status/error code indicated by remote party. | ||
/// </summary> | ||
/// <value>The error code.</value> | ||
public uint ErrorCode { get; private set; } | ||
|
||
protected SmppRemoteException() { } | ||
protected SmppRemoteException( | ||
System.Runtime.Serialization.SerializationInfo info, | ||
System.Runtime.Serialization.StreamingContext context) | ||
: base(info, context) { } | ||
|
||
public SmppRemoteException(string message, uint errorCode) : base(message) | ||
{ | ||
ErrorCode = errorCode; | ||
} | ||
|
||
public SmppRemoteException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace AberrantSMPP.Exceptions | ||
{ | ||
/// <summary> | ||
/// Communication timeout during an SMPP transaction. | ||
/// </summary> | ||
[Serializable] | ||
public class SmppTimeoutException : Exception | ||
{ | ||
public SmppTimeoutException() { } | ||
public SmppTimeoutException(string message) : base(message) { } | ||
public SmppTimeoutException(string message, Exception inner) : base(message, inner) { } | ||
protected SmppTimeoutException( | ||
System.Runtime.Serialization.SerializationInfo info, | ||
System.Runtime.Serialization.StreamingContext context) | ||
: base(info, context) { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters