Permalink
Browse files

initial import

  • Loading branch information...
ptomli committed Feb 11, 2013
0 parents commit cca23a18a80061606bc2c9255e899d93d0307f32
Showing with 20,776 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +4 −0 .travis.yml
  3. +30 −0 LICENSE
  4. +67 −0 LICENSE_LOGICA
  5. +53 −0 README.md
  6. +16 −0 charset/pom.xml
  7. +364 −0 charset/src/main/java/org/smpp/charset/Gsm7BitCharset.java
  8. +71 −0 charset/src/main/java/org/smpp/charset/Gsm7BitCharsetProvider.java
  9. +1 −0 charset/src/main/resources/META-INF/services/java.nio.charset.spi.CharsetProvider
  10. +22 −0 client/pom.xml
  11. +45 −0 client/smppsender.cfg
  12. +75 −0 client/smpptest.cfg
  13. +1 −0 client/src/main/bin/smppsender.bat
  14. +2 −0 client/src/main/bin/smppsender.sh
  15. +480 −0 client/src/main/java/org/smpp/client/SMPPSender.java
  16. +115 −0 client/src/main/java/org/smpp/test/PDUInitDeadlockTest.java
  17. +1,104 −0 client/src/main/java/org/smpp/test/SMPPTest.java
  18. +23 −0 core/pom.xml
  19. +162 −0 core/src/main/java/org/smpp/Connection.java
  20. +590 −0 core/src/main/java/org/smpp/Data.java
  21. +45 −0 core/src/main/java/org/smpp/NotSynchronousException.java
  22. +64 −0 core/src/main/java/org/smpp/OutbindEvent.java
  23. +37 −0 core/src/main/java/org/smpp/OutbindEventListener.java
  24. +192 −0 core/src/main/java/org/smpp/OutbindReceiver.java
  25. +70 −0 core/src/main/java/org/smpp/ReceivedPDUEvent.java
  26. +535 −0 core/src/main/java/org/smpp/Receiver.java
  27. +403 −0 core/src/main/java/org/smpp/ReceiverBase.java
  28. +70 −0 core/src/main/java/org/smpp/SSLConnection.java
  29. +47 −0 core/src/main/java/org/smpp/ServerPDUEvent.java
  30. +51 −0 core/src/main/java/org/smpp/ServerPDUEventListener.java
  31. +1,383 −0 core/src/main/java/org/smpp/Session.java
  32. +72 −0 core/src/main/java/org/smpp/SmppException.java
  33. +155 −0 core/src/main/java/org/smpp/SmppObject.java
  34. +590 −0 core/src/main/java/org/smpp/TCPIPConnection.java
  35. +65 −0 core/src/main/java/org/smpp/TimeoutException.java
  36. +85 −0 core/src/main/java/org/smpp/Transmitter.java
  37. +157 −0 core/src/main/java/org/smpp/WrongSessionStateException.java
  38. +113 −0 core/src/main/java/org/smpp/debug/Debug.java
  39. +105 −0 core/src/main/java/org/smpp/debug/DefaultDebug.java
  40. +59 −0 core/src/main/java/org/smpp/debug/DefaultEvent.java
  41. +42 −0 core/src/main/java/org/smpp/debug/Event.java
  42. +236 −0 core/src/main/java/org/smpp/debug/FileDebug.java
  43. +69 −0 core/src/main/java/org/smpp/debug/FileEvent.java
  44. +184 −0 core/src/main/java/org/smpp/debug/FileLog.java
  45. +102 −0 core/src/main/java/org/smpp/debug/LoggerDebug.java
  46. +151 −0 core/src/main/java/org/smpp/pdu/Address.java
  47. +97 −0 core/src/main/java/org/smpp/pdu/AddressRange.java
  48. +50 −0 core/src/main/java/org/smpp/pdu/AlertNotification.java
  49. +39 −0 core/src/main/java/org/smpp/pdu/BindReceiver.java
  50. +27 −0 core/src/main/java/org/smpp/pdu/BindReceiverResp.java
  51. +115 −0 core/src/main/java/org/smpp/pdu/BindRequest.java
  52. +95 −0 core/src/main/java/org/smpp/pdu/BindResponse.java
  53. +38 −0 core/src/main/java/org/smpp/pdu/BindTransciever.java
  54. +26 −0 core/src/main/java/org/smpp/pdu/BindTranscieverResp.java
  55. +38 −0 core/src/main/java/org/smpp/pdu/BindTransmitter.java
  56. +26 −0 core/src/main/java/org/smpp/pdu/BindTransmitterResp.java
  57. +411 −0 core/src/main/java/org/smpp/pdu/ByteData.java
  58. +141 −0 core/src/main/java/org/smpp/pdu/ByteDataList.java
  59. +111 −0 core/src/main/java/org/smpp/pdu/CancelSM.java
  60. +43 −0 core/src/main/java/org/smpp/pdu/CancelSMResp.java
  61. +609 −0 core/src/main/java/org/smpp/pdu/DataSM.java
  62. +119 −0 core/src/main/java/org/smpp/pdu/DataSMResp.java
  63. +488 −0 core/src/main/java/org/smpp/pdu/DeliverSM.java
  64. +59 −0 core/src/main/java/org/smpp/pdu/DeliverSMResp.java
  65. +145 −0 core/src/main/java/org/smpp/pdu/DestinationAddress.java
  66. +60 −0 core/src/main/java/org/smpp/pdu/DistributionList.java
  67. +46 −0 core/src/main/java/org/smpp/pdu/EnquireLink.java
  68. +42 −0 core/src/main/java/org/smpp/pdu/EnquireLinkResp.java
  69. +49 −0 core/src/main/java/org/smpp/pdu/GenericNack.java
  70. +22 −0 core/src/main/java/org/smpp/pdu/HeaderIncompleteException.java
  71. +34 −0 core/src/main/java/org/smpp/pdu/IntegerOutOfRangeException.java
  72. +51 −0 core/src/main/java/org/smpp/pdu/InvalidPDUException.java
  73. +22 −0 core/src/main/java/org/smpp/pdu/MessageIncompleteException.java
  74. +91 −0 core/src/main/java/org/smpp/pdu/Outbind.java
  75. +1,026 −0 core/src/main/java/org/smpp/pdu/PDU.java
  76. +87 −0 core/src/main/java/org/smpp/pdu/PDUException.java
  77. +160 −0 core/src/main/java/org/smpp/pdu/PDUFactory.java
  78. +76 −0 core/src/main/java/org/smpp/pdu/PDUHeader.java
  79. +81 −0 core/src/main/java/org/smpp/pdu/QuerySM.java
  80. +95 −0 core/src/main/java/org/smpp/pdu/QuerySMResp.java
  81. +162 −0 core/src/main/java/org/smpp/pdu/ReplaceSM.java
  82. +42 −0 core/src/main/java/org/smpp/pdu/ReplaceSMResp.java
  83. +96 −0 core/src/main/java/org/smpp/pdu/Request.java
  84. +93 −0 core/src/main/java/org/smpp/pdu/Response.java
  85. +284 −0 core/src/main/java/org/smpp/pdu/ShortMessage.java
  86. +544 −0 core/src/main/java/org/smpp/pdu/SubmitMultiSM.java
  87. +93 −0 core/src/main/java/org/smpp/pdu/SubmitMultiSMResp.java
  88. +605 −0 core/src/main/java/org/smpp/pdu/SubmitSM.java
  89. +82 −0 core/src/main/java/org/smpp/pdu/SubmitSMResp.java
  90. +25 −0 core/src/main/java/org/smpp/pdu/TooManyValuesException.java
  91. +46 −0 core/src/main/java/org/smpp/pdu/Unbind.java
  92. +42 −0 core/src/main/java/org/smpp/pdu/UnbindResp.java
  93. +41 −0 core/src/main/java/org/smpp/pdu/UnexpectedOptionalParameterException.java
  94. +53 −0 core/src/main/java/org/smpp/pdu/UnknownCommandIdException.java
  95. +65 −0 core/src/main/java/org/smpp/pdu/UnsuccessSME.java
  96. +31 −0 core/src/main/java/org/smpp/pdu/ValueNotSetException.java
  97. +36 −0 core/src/main/java/org/smpp/pdu/WrongDateFormatException.java
  98. +40 −0 core/src/main/java/org/smpp/pdu/WrongDestFlagException.java
  99. +42 −0 core/src/main/java/org/smpp/pdu/WrongLengthOfStringException.java
  100. +272 −0 core/src/main/java/org/smpp/pdu/tlv/TLV.java
  101. +77 −0 core/src/main/java/org/smpp/pdu/tlv/TLVByte.java
  102. +71 −0 core/src/main/java/org/smpp/pdu/tlv/TLVEmpty.java
  103. +35 −0 core/src/main/java/org/smpp/pdu/tlv/TLVException.java
  104. +77 −0 core/src/main/java/org/smpp/pdu/tlv/TLVInt.java
  105. +108 −0 core/src/main/java/org/smpp/pdu/tlv/TLVOctets.java
  106. +77 −0 core/src/main/java/org/smpp/pdu/tlv/TLVShort.java
  107. +97 −0 core/src/main/java/org/smpp/pdu/tlv/TLVString.java
  108. +102 −0 core/src/main/java/org/smpp/pdu/tlv/TLVUByte.java
  109. +34 −0 core/src/main/java/org/smpp/pdu/tlv/WrongLengthException.java
  110. +400 −0 core/src/main/java/org/smpp/util/ByteBuffer.java
  111. +46 −0 core/src/main/java/org/smpp/util/DefaultServerPDUEventListener.java
  112. +49 −0 core/src/main/java/org/smpp/util/NotEnoughDataInByteBufferException.java
  113. +293 −0 core/src/main/java/org/smpp/util/ProcessingThread.java
  114. +127 −0 core/src/main/java/org/smpp/util/Queue.java
  115. +83 −0 core/src/main/java/org/smpp/util/SimpleOutbindListener.java
  116. +36 −0 core/src/main/java/org/smpp/util/TerminatingZeroNotFoundException.java
  117. +117 −0 core/src/main/java/org/smpp/util/Unprocessed.java
  118. +221 −0 pom.xml
  119. +22 −0 sim/pom.xml
  120. +161 −0 sim/src/main/java/org/smpp/smscsim/DeliveryInfoSender.java
  121. +149 −0 sim/src/main/java/org/smpp/smscsim/PDUProcessor.java
  122. +37 −0 sim/src/main/java/org/smpp/smscsim/PDUProcessorFactory.java
  123. +86 −0 sim/src/main/java/org/smpp/smscsim/PDUProcessorGroup.java
  124. +63 −0 sim/src/main/java/org/smpp/smscsim/SMSCListener.java
  125. +221 −0 sim/src/main/java/org/smpp/smscsim/SMSCListenerImpl.java
  126. +87 −0 sim/src/main/java/org/smpp/smscsim/SMSCSession.java
  127. +218 −0 sim/src/main/java/org/smpp/smscsim/SMSCSessionImpl.java
  128. +170 −0 sim/src/main/java/org/smpp/smscsim/ShortMessageStore.java
  129. +45 −0 sim/src/main/java/org/smpp/smscsim/ShortMessageValue.java
  130. +398 −0 sim/src/main/java/org/smpp/smscsim/Simulator.java
  131. +390 −0 sim/src/main/java/org/smpp/smscsim/SimulatorPDUProcessor.java
  132. +104 −0 sim/src/main/java/org/smpp/smscsim/SimulatorPDUProcessorFactory.java
  133. +131 −0 sim/src/main/java/org/smpp/smscsim/util/Attribute.java
  134. +295 −0 sim/src/main/java/org/smpp/smscsim/util/BasicTableParser.java
  135. +151 −0 sim/src/main/java/org/smpp/smscsim/util/Record.java
  136. +288 −0 sim/src/main/java/org/smpp/smscsim/util/Table.java
  137. +39 −0 sim/src/main/java/org/smpp/smscsim/util/TableParser.java
  138. +46 −0 sim/users.txt
@@ -0,0 +1,5 @@
+target
+.project
+.settings
+.classpath
+.DS_Store
@@ -0,0 +1,4 @@
+language: java
+jdk:
+ - oraclejdk7
+ - openjdk7
30 LICENSE
@@ -0,0 +1,30 @@
+Copyright (c) 2005, OpenSmpp Project
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the OpenSmpp Project nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
+WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+This software was originally issued under the Logica Open Source License Version 1.0,
+but was subsequently put in the public domain under the current BSD licence, which was
+deemed closest to the spirit of the original licence.
@@ -0,0 +1,67 @@
+
+This, the original license for this software, has been superseded - please see
+the file LICENSE for the latest licensing information.
+
+===========================================================================
+Logica Open Source License Version 1.0
+Copyright (c) 1996-2001 Logica Mobile Networks Limited, all rights reserved.
+
+Logica Mobile Networks Limited ("Logica") is the owner of the rights
+in the software programs ("Software"). In the following text, the term
+"you" or "your" refers to you as an individual and/or (as the case may be)
+to the legal entity to which the Software has been supplied.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided all copies and partial copies
+made and/or distributed (in whatever form) and all associated documentation
+and other material must acknowledge Logica's rights by the inclusion
+of the following notice:
+
+"Copyright (c) 1996-2001 Logica Mobile Networks Limited;
+this product includes software developed by Logica by whom copyright
+and know-how are retained, all rights reserved."
+
+The location of such notice shall be such that it is clearly displayed
+and readable to any person accessing the Software.
+
+
+Any use, copying or distribution of the Software is subject to the following:
+
+* Your rights in respect of the Software are confined to the non-exclusive
+ and non-assignable license expressed herein. If you breach any of these
+ term and conditions then your license may be terminated.
+
+* The copyright and other intellectual property rights in and in connection
+ with the Software are and shall remain the exclusive property of Logica
+ or its third party licensors. You must not remove or alter any copyright
+ or other proprietary notice on any of the software.
+
+
+To the extent permitted by law and in the absence of a formal written contract
+between you and Logica the following limitations and exclusions also apply:
+
+* The Software is supplied and licensed on an "as is" basis without any
+ warranty or representation from Logica of any kind.
+
+* Conditions, warranties and representations that might be attributed
+ to Logica or the Software (including, but not limited to, any implied
+ condition or warranty relating to merchantability, fitness, suitability
+ or quality) are excluded.
+
+* In no event shall Logica be liable in respect of or in connection
+ with the supply, licensing, use or distribution of the software in any
+ form for any direct, special, indirect or consequential loss or damages
+ or for any loss of use, loss of data or of profits or for any business
+ interruption or loss of goodwill.
+
+* Logica shall have no obligation to fix any defect or deficiency
+ in the Software and Logica shall have no liability for any consequences
+ (direct or consequential) that may arise from any such defect or deficiency.
+
+* Logica's maximum liability (if any) in relation to the licensing,
+ provision and/or performance of the Software shall not exceed the price
+ you paid to secure your license.
+
+The laws of Ireland shall apply to these terms and conditions and shall
+govern every aspect of the supply and licensing of the Software.
+===========================================================================
@@ -0,0 +1,53 @@
+# OpenSmpp
+
+Java library implementing the SMPP protocol, and allowing development of
+External Short Message Entities (ESMEs) and more
+
+It is based on the OpenSmpp library from http://smstools.wiki.sourceforge.net/
+
+OpenSMPP is based on the original Logica SMPP libraries. It contains several
+bug fixes, and has been generally refactored.
+
+# Modules
+
+ * core - the core library
+ * charset - character sets useful in SMPP
+ * client - a simple SMPP client
+ * sim - a simple SMSC simulator
+
+# Build Status
+
+[![Build Status](https://travis-ci.org/ptomli/opensmpp.png?branch=master)](https://travis-ci.org/ptomli/opensmpp)
+
+# License
+
+Copyright (c) 2005, OpenSmpp Project
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the OpenSmpp Project nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
+WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+This software was originally issued under the Logica Open Source License Version 1.0,
+but was subsequently put in the public domain under the current BSD licence, which was
+deemed closest to the spirit of the original licence.
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.smpp</groupId>
+ <artifactId>opensmpp-parent</artifactId>
+ <version>2.4.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>opensmpp-charset</artifactId>
+ <packaging>jar</packaging>
+ <name>OpenSMPP Character Sets</name>
+
+</project>
Oops, something went wrong.

0 comments on commit cca23a1

Please sign in to comment.