资源简介
1. SMPP网关概述(联系dotphoenix@foxmail.com获取更多信息)
1.1 包含一个标准的SMPP Server(SMPP模拟器),一个SMPP Client 和 SDK
1.2 支持标准的SMPP V3.4,支持如下功能:多种bind模式,unbind,submit_sm,delivery_sm,enquire_link,generic_ack
1.3 SMPP Server可运行于Linux\Windows\OSX\Embeded Linux
1.4 SMPP Client可运行于Windows\Linux\OSX\Android\iOS\Embeded Linux
1.5 SDK支持Windows\Linux\OSX\Android\iOS\Embeded Linux,可被Java\C#\C++\MFC\PHP等调用,并提供基于json的HTTP API
1.6 支持MYSQL和SQLITE数据库
1.7 支持自定义计费,支持自定义业务系统
1.8 支持大吞吐量(使用数据库可支持500/秒,不使用数据库可支持8000条/秒)
1.9 兼容性良好,可以和几乎所有主流和非主流的网关及客户端正常工作
SMPP Gateway System(Contact dotphoenix@qq.com to get more information)
1 Including a standard SMPP Server(SMPP Simulator),a SMPP Client and SDK
2 Implement SMPP V3.4,Support PDUs including:3 bind modes,unbind,submit_sm,delivery_sm,enquire_link,generic_ack
3 SMPP Server supported platforms: Linux\Windows\OSX\Embeded Linux
4 SMPP Client supported platforms: Windows\Linux\OSX\Android\iOS\Embeded Linux
5 SDK supported platforms: Windows\Linux\OSX\Android\iOS\Embeded Linux,supported languages: Java\C#\C++\MFC\PHP,and also including HTTP API based on JSON.
6 Suppored s: MYSQL\SQLITE
7 Support customizing billing system and business system
8 Small delay, good reliability and large throughput (500 PDUs/s if need ,8000 PDUs/s if no need )
9 Good compatibility, can co-work with nearly all the mainstream and non-mainstream gateways/servers/clients

代码片段和文件信息
package com.cenbong.smppclient;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
public class base64Util
{
private final static char[] ALPHABET = “ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._“.toCharArray();
private static int[] toInt = new int[128];
static
{
for(int i=0; i< ALPHABET.length; i++)
{
toInt[ALPHABET[i]]= i;
}
}
/**
* Translates the specified byte array into base64 string.
*
* @param buf the byte array (not null)
* @return the translated base64 string (not null)
*/
public static String encode(byte[] buf)
{
int size = buf.length;
char[] ar = new char[((size + 2) / 3) * 4];
int a = 0;
int i=0;
while(i < size)
{
byte b0 = buf[i++];
byte b1 = (i < size) ? buf[i++] : 0;
byte b2 = (i < size) ? buf[i++] : 0;
int mask = 0x3F;
ar[a++] = ALPHABET[(b0 >> 2) & mask];
ar[a++] = ALPHABET[((b0 << 4) | ((b1 & 0xFF) >> 4)) & mask];
ar[a++] = ALPHABET[((b1 << 2) | ((b2 & 0xFF) >> 6)) & mask];
ar[a++] = ALPHABET[b2 & mask];
}
switch(size % 3)
{
case 1: ar[--a] = ‘=‘;
case 2: ar[--a] = ‘=‘;
}
return new String(ar);
}
/**
* Translates the specified base64 string into a byte array.
*
* @param s the base64 string (not null)
* @return the byte array (not null)
*/
public static byte[] decode(String s)
{
int delta = s.endsWith( “==“ ) ? 2 : s.endsWith( “=“ ) ? 1 : 0;
byte[] buffer = new byte[s.length()*3/4 - delta];
int mask = 0xFF;
int index = 0;
for(int i=0; i< s.length(); i+=4)
{
int c0 = toInt[s.charAt( i )];
int c1 = toInt[s.charAt( i + 1)];
buffer[index++]= (byte)(((c0 << 2) | (c1 >> 4)) & mask);
if(index >= buffer.length)
{
return buffer;
}
int c2 = toInt[s.charAt( i + 2)];
buffer[index++]= (byte)(((c1 << 4) | (c2 >> 2)) & mask);
if(index >= buffer.length)
{
return buffer;
}
int c3 = toInt[s.charAt( i + 3 )];
buffer[index++]= (byte)(((c2 << 6) | c3) & mask);
}
return buffer;
}
public static String encodeImageFile(String path)
{
BufferedInputStream bis = null;
String base64Text;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try
{
bis = new BufferedInputStream(new FileInputStream(path));
byte b[] = new byte[1024];
while(bis.read(b) > 0)
{
baos.write(b);
}
} catch
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-01-18 12:32 SMPP Gateway System\
文件 897 2016-01-13 14:56 SMPP Gateway System\SMPP Gateway System.txt
目录 0 2016-01-18 12:32 SMPP Gateway System\SMPPClientWin32\
文件 1102331 2016-01-18 12:32 SMPP Gateway System\SMPPClientWin32.7z
文件 3073024 2016-01-18 12:25 SMPP Gateway System\SMPPClientWin32\CBSmppClientWin32.exe
目录 0 2016-01-13 12:26 SMPP Gateway System\SMPPClientWin32\configer\
文件 702 2016-01-18 12:11 SMPP Gateway System\SMPPClientWin32\configer\configer.ini
目录 0 2016-01-13 14:33 SMPP Gateway System\SMPPClientX64-SDK-Java\
文件 1347072 2016-01-13 14:30 SMPP Gateway System\SMPPClientX64-SDK-Java\CBSmppClientJNI.dll
文件 43672 2016-01-13 12:53 SMPP Gateway System\SMPPClientX64-SDK-Java\CBSmppClientJNI.jar
目录 0 2016-01-13 12:51 SMPP Gateway System\SMPPClientX64-SDK-Java\configer\
文件 700 2016-01-13 12:26 SMPP Gateway System\SMPPClientX64-SDK-Java\configer\configer.ini
目录 0 2016-01-13 12:38 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\
文件 366 2015-12-18 11:52 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\.classpath
文件 391 2015-12-18 11:52 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\.project
目录 0 2016-01-13 12:38 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\.settings\
文件 99 2015-12-18 12:38 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\.settings\org.eclipse.core.resources.prefs
文件 670 2015-12-18 12:29 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\.settings\org.eclipse.jdt.core.prefs
目录 0 2016-01-13 12:38 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\
目录 0 2016-01-13 12:38 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\com\
目录 0 2016-01-13 12:38 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\com\cenbong\
目录 0 2016-01-13 12:38 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\com\cenbong\smppclient\
文件 3205 2016-01-13 11:17 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\com\cenbong\smppclient\ba
文件 4258 2016-01-13 11:17 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\com\cenbong\smppclient\CBSMPPClient.class
文件 1067 2016-01-13 11:17 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\com\cenbong\smppclient\CBSMPPClientNative.class
文件 4106 2016-01-13 11:18 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\com\cenbong\smppclient\CBSMPPClientTester.class
文件 5420 2016-01-13 11:17 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\com\cenbong\smppclient\JSONAdaptor.class
文件 1835 2016-01-13 11:17 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\com\cenbong\smppclient\ProtocolData$const_strings.class
文件 789 2016-01-13 11:17 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\com\cenbong\smppclient\ProtocolData$MMSInfo$Mms.class
文件 566 2016-01-13 11:17 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\com\cenbong\smppclient\ProtocolData$MMSInfo$MMSMultimedia.class
文件 753 2016-01-13 11:17 SMPP Gateway System\SMPPClientX64-SDK-Java\eclipse-project-src\bin\com\cenbong\smppclient\ProtocolData$MMSInfo$MMSPage.class
............此处省略29个文件信息
相关资源
- AndroidStudio版直连sqlserver
- java 企业销售管理系统
- jsp与SQL Server数据库实现的客户注册登
- java SQLServer做的员工管理系统
- commons-codec-1.3.jar和commons-httpclient-3.0
- Java HttpClient 4.x Jar包
- 法律咨询信息系统(java+jsp+sqlserver)
- 基于JSP的超市销售管理系统(源码+
- sqlserver2008连接所需jar包六个
- sqlserver数据库驱动jar
- 《21天学通SQL Server》源码
- sql server驱动jar包
- sqlserver2016数据库连接驱动及demo
- sql server jar包
- jsp+sqlserver库存管理系统精品毕业设计
- SQL SERVER +java界面的库存管理系统.zi
- Socket发送并接收服务器返回的数据
- JAVA写的信用卡管理系统
- commons-httpclient-3.0
- HTTP服务端接口模拟工具-HttpServerMock
- Javaweb开发的超市前台销售系统
- java连接mqtt所需jar包.zip
- apache httpclient jar包
- java源码 亲测java 酒店管理系统(含
- 能够成功运行,学生成绩管理系统,
- 基于javaweb+jsp+serverlet
- jsp留言板包括留言添加,修改,删除
- JSP租车管理系统 SQLSERVER数据库.rar
- 图书馆信息管理系统利用框架开发利
- SQL server数据库课程设计之基于Java图书
评论
共有 条评论