亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? bindreceiver.java

?? Java寫的smpp實現(xiàn)
?? JAVA
字號:
/* * Java SMPP API * Copyright (C) 1998 - 2001 by Oran Kelly *  * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. *  * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. *  * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA *  * A copy of the LGPL can be viewed at http://www.gnu.org/copyleft/lesser.html * Java SMPP API author: orank@users.sf.net * Java SMPP API Homepage: http://smppapi.sourceforge.net/ */package ie.omk.smpp.message;import java.io.*;import ie.omk.smpp.SMPPException;import ie.omk.smpp.BadCommandIDException;import ie.omk.smpp.StringTooLongException;import ie.omk.smpp.BadInterfaceVersionException;import ie.omk.smpp.util.SMPPIO;import ie.omk.debug.Debug;/** Bind to the SMSC as receiver.  * This message is used to bind to the SMSC as a Receiver ESME.  * @author Oran Kelly  * @version 1.0  */public class BindReceiver    extends ie.omk.smpp.message.SMPPRequest{    /** System Id */    private String sysId;    /** Authentication password */    private String password;    /** System type */    private String sysType;    /** Address range for message routing */    private String addressRange;    /** Interface version */    private int interfaceVer = 0x33;    /** Address Type Of Number for message routing */    private int addrTon;    /** Address Numbering Plan Indicator for message routing */    private int addrNpi;    /** Constructs a new BindReceiver.      */    public BindReceiver()    {	super(ESME_BNDRCV);	// Initialise the packets fields to null values	sysId = password = sysType = addressRange = null;	interfaceVer = addrTon = addrNpi = 0;    }    /** Constructs a new BindReceiver with specified sequence number.      * @param seqNum The sequence number to be used by this packet      * @deprecated      */    public BindReceiver(int seqNum)    {	super(ESME_BNDRCV, seqNum);	// Initialise the packets fields to null values	sysId = password = sysType = addressRange = null;	interfaceVer = addrTon = addrNpi = 0;    }    /** Read a BindReceiver packet from an InputStream.  An entire packet      * must exist in the stream, including the header information.      * @param in The InputStream to read from      * @exception java.io.IOException if there's a read error.      */    public BindReceiver(InputStream in)	throws java.io.IOException, ie.omk.smpp.SMPPException    {	super(in);	if (getCommandId() != SMPPPacket.ESME_BNDRCV)	    throw new BadCommandIDException(SMPPPacket.ESME_BNDRCV,		    getCommandId());	if (getCommandStatus() != 0)	    return;	// First the system ID	sysId = SMPPIO.readCString(in);	// Get the password	password = SMPPIO.readCString(in);	// System type	sysType = SMPPIO.readCString(in);	// Interface version	interfaceVer =  SMPPIO.readInt(in, 1);	// Address TON	addrTon =  SMPPIO.readInt(in, 1);	// Address NPI	addrNpi =  SMPPIO.readInt(in, 1);	// Address range	addressRange = SMPPIO.readCString(in);    }    /** Set the System Id for this Receiver.      * @param sysId The new System Id (Up to 15 characters in length)      * @exception ie.omk.smpp.StringTooLongException if the system id is too      * long.      */    public void setSystemId(String sysId)	throws ie.omk.smpp.SMPPException    {	if (sysId == null) {	    this.sysId = null;	    return;	}	if(sysId.length() < 16)	    this.sysId = sysId;	else	    throw new StringTooLongException(16);    }    /** Set the password for this receiver.      * @param password The new password to use (Up to 8 characters in length)      * @exception ie.omk.smpp.StringTooLongException if the password is too      * long.      */    public void setPassword(String password)	throws ie.omk.smpp.SMPPException    {	if(password == null) {	    this.password = null;	    return;	}	if(password.length() < 9)	    this.password = password;	else	    throw new StringTooLongException(8);    }    /** Set the system type for this receiver.      * @param sysType The new system type (Up to 12 characters in length)      * @exception ie.omk.smpp.StringTooLongException if the system type is too      * long.      */    public void setSystemType(String sysType)	throws ie.omk.smpp.SMPPException    {	if(sysType == null) {	    this.sysType = null;	    return;	}	if(sysType.length() < 13)	    this.sysType = sysType;	else	    throw new StringTooLongException(12);    }    /** Set the interface version being used by this receiver.      * @param interfaceVer The interface version to report to the SMSC      * (major version number only)      * @exception ie.omk.smpp.BadInterfaceVersionException if the interface      * version is invalid.      */     public void setInterfaceVersion(int interfaceVer)	throws ie.omk.smpp.SMPPException    {	if (interfaceVer != 0x33)	    throw new BadInterfaceVersionException(interfaceVer);	else	    this.interfaceVer = interfaceVer;    }    /** Set the message routing Ton for this receiver      * @param addrTon The new Type Of Number to use.      * @exception ie.omk.smpp.InvalidTONException if the TON is invalid.      */    public void setAddressTon(int addrTon)	throws ie.omk.smpp.SMPPException    {	// XXX check the TON value?	this.addrTon = addrTon;    }    /** Set the message routing Npi for this receiver      * @param addrNpi The new Numbering plan indicator to use      * @exception ie.omk.smpp.InvalidNPIException if the NPI is invalid      */    public void setAddressNpi(int addrNpi)	throws ie.omk.smpp.SMPPException    {	// XXX check the NPI?	this.addrNpi = addrNpi;    }    /** Set the message routing address range for this receiver. The address      * range can be either a number (for a single address) or a routing      * expression. Routing expressions are specified using regular expressions.      * See the SMPP specification for more details.      * If the address range is blank (or null), the default address range for      * this SystemId is used.      * @param addressRange The new address range to use (Up to 40 characters)      * @exception ie.omk.smpp.StringTooLongException if the address range is      * too long.      * @exception ie.omk.smpp.InvalidAddressRangeException if the address range      * is invalid.      */    public void setAddressRange(String addressRange)	throws ie.omk.smpp.SMPPException    {	if(addressRange == null) {	    this.addressRange = null;	    return;	}	if(addressRange.length() < 41)	    this.addressRange = new String(addressRange);	else	    throw new StringTooLongException(40);    }    /** Get the system Id */    public String getSystemId()    {	return (sysId);    }    /** Get the authentication password */    public String getPassword()    {	return (password);    }    /** Get the current system type */    public String getSystemType()    {	return (sysType);    }    /** Get the routing address regular expression */    public String getAddressRange()    {	return (addressRange);    }    /** Get the Type of number */    public int getAddressTon()    {	return (addrTon);    }    /** Get the Numbering plan indicator */    public int getAddressNpi()    {	return (addrNpi);    }    /** Get the interface version */    public int getInterfaceVersion()    {	return (interfaceVer);    }    /** Return the number of bytes this packet would be encoded as to an      * OutputStream.      * @return the number of bytes this packet would encode as.      */    public int getCommandLen()    {	int len = (getHeaderLen()		+ ((sysId != null) ? sysId.length() : 0)		+ ((password != null) ? password.length() : 0)		+ ((sysType != null) ? sysType.length() : 0)		+ ((addressRange != null) ? addressRange.length() : 0));	// 3 1-byte integers, 4 c-strings.	return (len + 3 + 4);    }    /** Write the byte representation of this packet to an OutputStream.      * @param out The output stream to write to      * @exception java.io.IOException If there is an error writing to the      * stream.      */    protected void encodeBody(OutputStream out)	throws java.io.IOException, ie.omk.smpp.SMPPException    {	SMPPIO.writeCString(sysId, out);	SMPPIO.writeCString(password, out);	SMPPIO.writeCString(sysType, out);	SMPPIO.writeInt((int)interfaceVer, 1, out);	SMPPIO.writeInt((int)addrTon, 1, out);	SMPPIO.writeInt((int)addrNpi, 1, out);	SMPPIO.writeCString(addressRange, out);    }    /** Convert this packet to a String. Not to be interpreted programmatically,      * it's just dead handy for debugging!      */    public String toString()    {	return ("bind_receiver");    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美高清在线视频| 国产精品影视网| 91污片在线观看| 欧美国产日本韩| 久久国产生活片100| 国产精品99久| 亚洲欧洲日韩av| 成人午夜在线免费| 国产偷国产偷精品高清尤物| 国产精品一区二区91| 国产免费成人在线视频| 韩国理伦片一区二区三区在线播放 | 午夜电影一区二区三区| 欧美在线观看视频在线| 首页亚洲欧美制服丝腿| 国产99久久久久| 亚洲精品成人精品456| 另类小说图片综合网| 国产·精品毛片| 国产精品美女www爽爽爽| 国产精品小仙女| 国产日产欧美精品一区二区三区| 国产一区二区在线电影| 国产三区在线成人av| 美女视频黄久久| 国产精品人人做人人爽人人添| 国产精品1区二区.| 国产精品视频第一区| 一本一道久久a久久精品综合蜜臀| 国产精品视频免费看| 一本色道a无线码一区v| 亚洲地区一二三色| 欧美日韩国产另类一区| 日韩综合小视频| 91精品国产色综合久久不卡电影| 免费高清在线一区| 久久精品亚洲乱码伦伦中文 | 成人久久久精品乱码一区二区三区| 国产精品全国免费观看高清| 99国产精品久久久| 午夜精品福利在线| 久久久www成人免费毛片麻豆 | 日韩av一区二区三区四区| 精品欧美一区二区久久| 粉嫩av一区二区三区在线播放| 亚洲成人久久影院| 久久久久久久久久久久久女国产乱 | 久久亚洲精品小早川怜子| 国产成人av影院| 天天影视涩香欲综合网| 久久久九九九九| 欧美日韩另类一区| 国产成人欧美日韩在线电影| 日韩中文字幕亚洲一区二区va在线| 久久众筹精品私拍模特| 色综合网色综合| 亚洲综合色区另类av| 成人午夜av影视| 欧美日韩aaaaaa| 亚洲va韩国va欧美va精品| 从欧美一区二区三区| 欧美成人vps| 男人的天堂亚洲一区| 欧美日韩二区三区| 免费高清在线视频一区·| 国产69精品久久久久毛片| 欧美激情艳妇裸体舞| 男人的天堂亚洲一区| 欧美午夜电影在线播放| 亚洲最大的成人av| 成人做爰69片免费看网站| 国产日韩视频一区二区三区| 欧美色中文字幕| 精品一区二区在线视频| 亚洲精品成人在线| 天天综合色天天综合色h| 美女诱惑一区二区| 国产激情偷乱视频一区二区三区| 首页综合国产亚洲丝袜| 日韩av不卡一区二区| 日韩欧美专区在线| 美脚の诱脚舐め脚责91| 国产精品久久国产精麻豆99网站 | 日韩一区二区三区视频在线 | 中文字幕乱码日本亚洲一区二区| 成人动漫视频在线| 狠狠色综合日日| 精品一区二区三区久久| 麻豆成人av在线| 紧缚捆绑精品一区二区| 日韩成人伦理电影在线观看| 天堂久久一区二区三区| 免费一区二区视频| 国内成人免费视频| 国产v日产∨综合v精品视频| 成人免费视频app| 91麻豆产精品久久久久久 | 91电影在线观看| 欧美日韩精品福利| 日韩丝袜美女视频| 国产婷婷色一区二区三区| 国产精品国产三级国产aⅴ入口| 日韩美女啊v在线免费观看| 亚洲综合丁香婷婷六月香| 日日夜夜免费精品视频| 极品少妇xxxx精品少妇偷拍| 成人综合婷婷国产精品久久免费| 91麻豆国产精品久久| 欧美日韩一区二区三区在线看| 91精品国产一区二区人妖| 精品久久久网站| 最新日韩在线视频| 日韩精品成人一区二区在线| 国内精品伊人久久久久av一坑 | 男人操女人的视频在线观看欧美| 精品在线播放午夜| 91免费版pro下载短视频| 欧美久久久久久久久中文字幕| 久久综合九色综合97婷婷| 亚洲婷婷国产精品电影人久久| 日韩av电影一区| 成人激情免费网站| 91精品国产综合久久香蕉的特点 | 国产sm精品调教视频网站| 欧美中文一区二区三区| 欧美电视剧在线看免费| 成人欧美一区二区三区在线播放| 亚洲r级在线视频| 成人精品视频一区二区三区| 欧美精品成人一区二区三区四区| 欧美国产日韩a欧美在线观看| 日韩在线一区二区三区| 成人美女在线视频| 日韩一区二区视频在线观看| 亚洲免费看黄网站| 狠狠色综合日日| 91精品国产综合久久国产大片 | 欧美三区免费完整视频在线观看| 久久久99免费| 日本欧美韩国一区三区| 91精彩视频在线观看| 国产欧美精品一区二区三区四区| 全部av―极品视觉盛宴亚洲| 97se亚洲国产综合在线| 久久久天堂av| 免费欧美高清视频| 欧美日韩综合色| 亚洲另类色综合网站| 岛国一区二区在线观看| 日韩限制级电影在线观看| 亚洲一卡二卡三卡四卡无卡久久| 成人免费毛片嘿嘿连载视频| 久久久久久久免费视频了| 久久精品国产99国产精品| 欧美精品亚洲一区二区在线播放| 一区二区三区在线视频观看58| 成人av电影免费观看| 国产亚洲精品中文字幕| 经典三级一区二区| www久久精品| 捆绑变态av一区二区三区| 欧美精品一二三| 日本午夜精品一区二区三区电影| 欧美精品电影在线播放| 亚洲第一综合色| 欧美日韩一本到| 午夜av一区二区三区| 欧美三级韩国三级日本三斤| 亚洲狠狠丁香婷婷综合久久久| 99精品热视频| 亚洲欧美日韩小说| 91成人在线精品| 午夜国产精品一区| 日韩欧美一区二区久久婷婷| 乱一区二区av| 国产午夜精品理论片a级大结局| 国内精品免费**视频| 久久久久久免费网| 成人国产精品视频| 1000部国产精品成人观看| 色婷婷av一区二区三区软件| 一区二区三区四区国产精品| 在线精品亚洲一区二区不卡| 亚洲午夜激情网站| 制服丝袜中文字幕一区| 久久精品国产色蜜蜜麻豆| 亚洲精品一区二区在线观看| 国产精品1区二区.| 中文字幕在线视频一区| 一本色道久久综合亚洲aⅴ蜜桃 | 久久久国产综合精品女国产盗摄| 精品夜夜嗨av一区二区三区| 国产女同性恋一区二区| 色综合一个色综合| 亚洲成av人综合在线观看| 精品精品国产高清一毛片一天堂| 国产一区二区三区不卡在线观看| 国产精品女主播在线观看| 91福利社在线观看| 久久精品72免费观看|