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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bindtransmitter.java

?? Java寫的smpp實現
?? 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.BadInterfaceVersionException;import ie.omk.smpp.StringTooLongException;import ie.omk.smpp.util.SMPPIO;import ie.omk.debug.Debug;/** Bind to the SMSC as a transmitter.  * @author Oran Kelly  * @version 1.0  */public class BindTransmitter    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;    /** Construct a new BindTransmitter.      * @param seqNum The sequence number to use      */    public BindTransmitter()    {	super(ESME_BNDTRN);	// Initialise the packet's fields to null values	sysId = password = sysType = addressRange = null;	interfaceVer = addrTon = addrNpi = 0;    }    /** Construct a new BindTransmitter with specified sequence number.      * @param seqNum The sequence number to use      * @deprecated      */    public BindTransmitter(int seqNum)    {	super(ESME_BNDTRN, seqNum);	// Initialise the packet's fields to null values	sysId = password = sysType = addressRange = null;	interfaceVer = addrTon = addrNpi = 0;    }    /** Read in a BindTransmitter from an InputStream.  A full packet,      * including the header fields must exist in the stream.      * @param in The InputStream to read from      * @exception java.io.IOException if there's a problem reading from the      * input stream.      */    public BindTransmitter(InputStream in)	throws java.io.IOException, ie.omk.smpp.SMPPException    {	super(in);	if (getCommandId() != SMPPPacket.ESME_BNDTRN)	    throw new BadCommandIDException(SMPPPacket.ESME_BNDTRN,		    getCommandId());	if (getCommandStatus() != 0)	    return;	sysId = SMPPIO.readCString(in);	password = SMPPIO.readCString(in);	sysType = SMPPIO.readCString(in);	interfaceVer =  SMPPIO.readInt(in, 1);	addrTon =  SMPPIO.readInt(in, 1);	addrNpi =  SMPPIO.readInt(in, 1);	addressRange = SMPPIO.readCString(in);    }    /** Set the system Id      * @param sysId The System Id to use (Up to 15 characters)      * @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(15);    }    /** Set the password for this transmitter      * @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 transmitter      * @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 transmitter      * @param interfaceVer The interface version to report to the SMSC.      * @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);	this.interfaceVer = interfaceVer;    }    /** Set the message routing Ton for this transmitter      * @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 TON?	this.addrTon = addrTon;    }    /** Set the message routing Npi for this transmitter      * @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 transmitter      * @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 = 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()    {	// Calculated as the size of the header plus 3 1-byte ints and	// 4 null-terminators for the strings plus the length of the strings	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(interfaceVer, 1, out);	SMPPIO.writeInt(addrTon, 1, out);	SMPPIO.writeInt(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 new String("bind_transmitter");    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成a人片在线观看中文| 国产精品成人网| 成人免费看黄yyy456| 亚洲黄色免费电影| www国产成人| 欧美日韩中文精品| 成人性视频免费网站| 黑人巨大精品欧美黑白配亚洲| 国产精品成人在线观看| 欧美电影免费观看完整版| 91视频免费播放| 国产传媒欧美日韩成人| 蜜臀精品久久久久久蜜臀| 亚洲精品美国一| 久久久久国产成人精品亚洲午夜 | 一区二区三区欧美日韩| 精品欧美黑人一区二区三区| 在线免费观看日本一区| 亚洲国产成人精品视频| 国产精品国产三级国产aⅴ入口 | 久久久91精品国产一区二区三区| 欧美亚洲动漫精品| 成人午夜在线播放| 韩日欧美一区二区三区| 天天av天天翘天天综合网色鬼国产| 亚洲特黄一级片| 国产午夜精品久久久久久免费视| 日韩欧美国产综合一区| 3d动漫精品啪啪一区二区竹菊 | 精品动漫一区二区三区在线观看| 欧美探花视频资源| 欧美综合久久久| 色一情一伦一子一伦一区| 成人精品国产一区二区4080| 国产剧情一区二区| 国产在线精品视频| 久久se这里有精品| 精品在线视频一区| 久久国内精品视频| 精品一区二区免费| 国产在线精品一区二区不卡了| 蜜臀久久99精品久久久画质超高清| 一区二区三区中文字幕精品精品| 亚洲欧美日韩综合aⅴ视频| 成人免费在线播放视频| 国产精品久久久久影院| 亚洲欧美一区二区三区久本道91| 亚洲精品久久久久久国产精华液| 日韩一区中文字幕| 亚洲一区二区三区中文字幕| 亚洲一级在线观看| 午夜av电影一区| 蜜臀av性久久久久蜜臀av麻豆| 欧美aaaaa成人免费观看视频| 国产在线播精品第三| 国产精品系列在线观看| 成人综合在线网站| 色婷婷一区二区三区四区| 在线亚洲+欧美+日本专区| 欧美日韩视频第一区| 欧美一区二区三区公司| 337p日本欧洲亚洲大胆色噜噜| 国产欧美一区二区精品性色超碰| 国产精品三级久久久久三级| 亚洲免费观看在线观看| 亚洲综合无码一区二区| 日韩国产高清在线| 国产综合一区二区| 色综合天天做天天爱| 欧美综合亚洲图片综合区| 日韩欧美亚洲国产另类| 国产精品欧美久久久久一区二区| 樱桃视频在线观看一区| 青青国产91久久久久久| 国产美女主播视频一区| 91在线视频播放地址| 欧美无人高清视频在线观看| 日韩欧美aaaaaa| 中文字幕av一区二区三区免费看| 亚洲一区二区av电影| 国产精品综合二区| 在线观看av不卡| 久久综合久久综合久久综合| **欧美大码日韩| 天天色 色综合| 成人一区二区三区视频在线观看| 欧美在线观看视频在线| 精品国产a毛片| 一区二区不卡在线视频 午夜欧美不卡在| 日韩精品五月天| 丁香一区二区三区| 欧美精品在线观看播放| 国产精品午夜久久| 秋霞午夜av一区二区三区| 成人免费看视频| 日韩精品在线看片z| 综合电影一区二区三区 | 岛国一区二区在线观看| 欧美日韩精品欧美日韩精品一综合| 国产午夜精品久久久久久免费视 | 日韩电影一区二区三区| 成人av在线一区二区三区| 欧美片网站yy| 亚洲欧美视频一区| 国产91精品在线观看| 在线电影一区二区三区| 最新国产成人在线观看| 色综合天天综合网天天看片| 精品理论电影在线观看| 天天av天天翘天天综合网色鬼国产| www.视频一区| www国产成人| 蜜臀久久99精品久久久久宅男| 在线精品亚洲一区二区不卡| 国产视频一区在线观看| 蜜桃一区二区三区四区| 欧美剧情电影在线观看完整版免费励志电影 | 国产91精品免费| 日韩精品一区二区三区视频在线观看| 1000精品久久久久久久久| 国产精品一色哟哟哟| 欧美一级日韩免费不卡| 亚洲成人av福利| 日本电影亚洲天堂一区| 久久久精品中文字幕麻豆发布| 日本在线不卡一区| 欧美男生操女生| 亚洲一区在线看| 色婷婷久久久综合中文字幕| 国产精品精品国产色婷婷| 国产精品亚洲成人| 欧美电影免费观看高清完整版| 午夜国产精品一区| 欧美日韩激情一区二区三区| 亚洲黄色性网站| 在线观看一区日韩| 亚洲一区二区四区蜜桃| 欧洲一区在线电影| 亚洲午夜久久久久久久久电影院| 在线观看日产精品| 一区二区三区鲁丝不卡| 欧美自拍丝袜亚洲| 亚洲国产一区二区三区| 在线观看日韩精品| 婷婷成人综合网| 欧美一区二区三区在线视频 | 国产福利一区二区三区视频 | 水蜜桃久久夜色精品一区的特点| 欧美男人的天堂一二区| 亚洲综合免费观看高清在线观看| 色婷婷综合在线| 五月婷婷综合网| 亚洲精品视频免费看| 色婷婷久久久综合中文字幕| 亚洲电影一区二区| 欧美一区二区观看视频| 久久不见久久见免费视频1| 久久久久国产精品免费免费搜索| 国产精品资源在线看| 国产精品无人区| 在线看日本不卡| 欧美a级一区二区| 国产拍揄自揄精品视频麻豆| 91在线播放网址| 午夜伊人狠狠久久| 久久影视一区二区| www.久久久久久久久| 午夜精品久久一牛影视| 久久综合九色综合久久久精品综合| 韩日欧美一区二区三区| 中文字幕在线一区免费| 日本黄色一区二区| 日韩电影免费在线| 欧美激情一区三区| 欧美午夜片在线观看| 国内精品免费在线观看| 亚洲欧美综合网| 欧美一级欧美三级| 福利电影一区二区| 午夜亚洲福利老司机| 久久久久亚洲蜜桃| 欧美综合一区二区| 国产精品综合二区| 亚洲成人精品一区| 久久色在线观看| 欧美日韩免费一区二区三区视频| 蓝色福利精品导航| 亚洲欧美日韩国产一区二区三区 | 91麻豆精品国产91久久久久| 国产精品一区二区x88av| 亚洲一线二线三线久久久| 久久久精品欧美丰满| 欧美在线免费观看视频| 国产露脸91国语对白| 日韩精品一卡二卡三卡四卡无卡| 日本一区二区综合亚洲| 6080yy午夜一二三区久久| 91香蕉视频污| 国产一区二区三区最好精华液| 亚洲线精品一区二区三区八戒|