資源簡介
1. SMPP網關概述(聯(lián)系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 支持自定義計費,支持自定義業(yè)務系統(tǒng)
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????????{
????????????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?????????{
????????????byte?b0?=?buf[i++];
????????????byte?b1?=?(i?????????????byte?b2?=?(i?
????????????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????????{
????????????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個文件信息
評論
共有 條評論