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

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

?? smpp.java

?? 點對點短消息發送協議(smpp)
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
// FrontEnd Plus for JAD
// DeCompiled : Smpp.class

package sms;

import java.io.*;
import java.net.Socket;
import java.net.UnknownHostException;
import utils.*;

// Referenced classes of package sms:
//            SMSException, smppEncoder, smppRequest, smDL, 
//            smDLModification, queryAll, smppDispatcher, param, 
//            smppHeader, Message, Binding, smppSyncResponse, 
//            smppCommands, Errors, Receiver, AddCustomerResponse, 
//            Customer, AddDLResponse, Address, AddMemberResponse, 
//            Member, CancelResponse, ListResponse, ParameterResponse, 
//            ModCustomerResponse, GetCustomerResponse, SendResponse, BindResponse, 
//            GetDLResponse, GetMemberResponse, DetailsResponse, ReplaceResponse, 
//            StatusResponse, DelCustomerResponse, DelDLResponse, DelMemberResponse

public class Smpp extends semaphore
    implements smppCommands, Errors
{

    public static boolean encryption;
    private String cr;
    Receiver receiverTarget;
    private boolean debugon;
    private int lastSequenceNumber;
    private OutputStream out;
    Socket socket;
    fifo pendingRequests;
    table pendingResponses;
    private static String smscHost;
    private static int smscPort;
    private int bindtype;
    smppDispatcher dispatcher;
    boolean disconnected;
    int disconnectedError;

    public void add(AddCustomerResponse addcustomerresponse, Customer customer)
        throws SMSException, IOException
    {
        if(customer == null)
            throw new SMSException(10014);
        smppEncoder smppencoder = new smppEncoder();
        try
        {
            smppencoder.addCustomer(customer);
        }
        catch(encoderException encoderexception)
        {
            throw new SMSException(encoderexception);
        }
        putRequest(new smppRequest(17, customer, addcustomerresponse), smppencoder);
    }

    public void add(Customer customer)
        throws SMSException, IOException
    {
        add(null, customer);
        getSyncResponse();
    }

    public void add(AddDLResponse adddlresponse, Address address, String s)
        throws SMSException, IOException
    {
        if(address == null || s == null)
            throw new SMSException(10014);
        smppEncoder smppencoder = new smppEncoder();
        smDL smdl = new smDL();
        smdl.source = address;
        smdl.name = s;
        try
        {
            smppencoder.addDL(smdl);
        }
        catch(encoderException encoderexception)
        {
            throw new SMSException(encoderexception);
        }
        putRequest(new smppRequest(22, smdl, adddlresponse), smppencoder);
    }

    public void add(Address address, String s)
        throws SMSException, IOException
    {
        add(null, address, s);
        getSyncResponse();
    }

    public void add(AddMemberResponse addmemberresponse, Address address, String s, Member member)
        throws SMSException, IOException
    {
        if(address == null || s == null || member == null)
            throw new SMSException(10014);
        smppEncoder smppencoder = new smppEncoder();
        smDLModification smdlmodification = new smDLModification(address, s, member, false);
        try
        {
            smppencoder.modDL(smdlmodification);
        }
        catch(encoderException encoderexception)
        {
            throw new SMSException(encoderexception);
        }
        putRequest(new smppRequest(23, smdlmodification, addmemberresponse), smppencoder);
    }

    public void add(Address address, String s, Member member)
        throws SMSException, IOException
    {
        add(null, address, s, member);
        getSyncResponse();
    }

    private void log(String s)
    {
        if(debugon)
            System.out.println("" + Thread.currentThread() + "  SENDER " + s);
    }

    public void cancel(CancelResponse cancelresponse, Message message)
        throws SMSException, IOException
    {
        if(message == null)
            throw new SMSException(10014);
        smppEncoder smppencoder = new smppEncoder();
        try
        {
            smppencoder.cancel(message);
        }
        catch(encoderException encoderexception)
        {
            throw new SMSException(encoderexception);
        }
        putRequest(new smppRequest(8, message, cancelresponse), smppencoder);
    }

    public void cancel(Message message)
        throws IOException, SMSException
    {
        cancel(null, message);
        getSyncResponse();
    }

    public Smpp(String s, int i)
        throws UnknownHostException, IOException, socksException
    {
        super("SMPP");
        cr = "$Id: SMS JDK (tm) Version 2.0.1 Copyright (C) 1998 Noctor Consulting Limited. $";
        smppInit(s, i);
    }

    public Smpp()
        throws UnknownHostException, IOException, socksException, SMSException
    {
        super("SMPP");
        cr = "$Id: SMS JDK (tm) Version 2.0.1 Copyright (C) 1998 Noctor Consulting Limited. $";
        if(smscHost == null || smscPort == 0)
        {
            throw new SMSException(10001);
        } else
        {
            smppInit(smscHost, smscPort);
            return;
        }
    }

    public void list(ListResponse listresponse, Address address, int i)
        throws SMSException, IOException
    {
        if(i <= 0)
            throw new SMSException(10014);
        smppEncoder smppencoder = new smppEncoder();
        queryAll queryall = new queryAll();
        queryall.source = address;
        queryall.count = (byte)i;
        try
        {
            smppencoder.queryAll(queryall);
        }
        catch(encoderException encoderexception)
        {
            throw new SMSException(encoderexception);
        }
        putRequest(new smppRequest(35, address, listresponse), smppencoder);
    }

    private void putRequest(smppRequest smpprequest, smppEncoder smppencoder)
        throws SMSException, IOException
    {
        if(debugon)
            log("Sending packet... " + Thread.currentThread());
        if(smppencoder == null)
        {
            sendPacket(smpprequest, null);
        } else
        {
            if(debugon)
                log("INCLUDED BODY: " + smppencoder);
            sendPacket(smpprequest, smppencoder.getBytes());
        }
        if(debugon)
            log("sent packet");
        if(smpprequest.thread != null)
        {
            if(smpprequest.thread.equals(dispatcher.dispatcherThread))
            {
                if(debugon)
                    log("Sending from dispatcher thread");
                try
                {
                    dispatcher.smppDispatch(smpprequest.sequenceNumber);
                    return;
                }
                catch(decoderException decoderexception)
                {
                    throw new IOException("protocol error:" + decoderexception);
                }
                catch(encoderException encoderexception)
                {
                    throw new SMSException(encoderexception);
                }
            }
            if(debugon)
                log("Suspending until response is received");
            Thread thread = Thread.currentThread();
            try
            {
                while(pendingResponses.get(thread) == null) 
                    Thread.yield();
            }
            catch(InterruptedException _ex) { }
            if(debugon)
                log("Suspend over");
        }
    }

    public String[] list(Address address, int i)
        throws SMSException, IOException
    {
        list(null, address, i);
        String as[] = (String[])getSyncResponse();
        return as;
    }

    public void parameter(ParameterResponse parameterresponse, String s)
        throws SMSException, IOException
    {
        if(s == null)
            throw new SMSException(10014);
        smppEncoder smppencoder = new smppEncoder();
        param param1 = new param();
        param1.name = s;
        try
        {
            smppencoder.paramGet(param1);
        }
        catch(encoderException encoderexception)
        {
            throw new SMSException(encoderexception);
        }
        putRequest(new smppRequest(34, param1, parameterresponse), smppencoder);
    }

    public String parameter(String s)
        throws SMSException, IOException
    {
        parameter(null, s);
        return (String)getSyncResponse();
    }

    public void mod(ModCustomerResponse modcustomerresponse, Customer customer)
        throws SMSException, IOException
    {
        if(customer == null)
            throw new SMSException(10014);
        smppEncoder smppencoder = new smppEncoder();
        try
        {
            smppencoder.modifyCustomer(customer);
        }
        catch(encoderException encoderexception)
        {
            throw new SMSException(encoderexception);
        }
        putRequest(new smppRequest(19, customer, modcustomerresponse), smppencoder);
    }

    public void mod(Customer customer)
        throws SMSException, IOException
    {
        mod(null, customer);
        getSyncResponse();
    }

    public void checkLink()
        throws SMSException, IOException
    {
        putRequest(new smppRequest(21, null, null), null);
        getSyncResponse();
    }

    private synchronized void sendPacket(smppRequest smpprequest, byte abyte0[])
        throws SMSException, IOException
    {
        try
        {
            if(debugon)
                log(" *** USE");
            use();
            if(debugon)
                log(" *** USING");
            if(disconnected)
                throw new SMSException(disconnectedError);
            if(bindtype == 0)
                throw new SMSException(10002);
            if(smpprequest.command == 6)
            {
                bindtype = 0;
                disconnected = true;
                disconnectedError = 10009;
            }
            if(smpprequest.target == null)
                smpprequest.thread = Thread.currentThread();
            if(bindtype == 1 && smpprequest.command != 1 && smpprequest.command != 6 && smpprequest.command != 21)
                throw new SMSException(10003);
            smppHeader smppheader = new smppHeader();
            if((smpprequest.command & 0x80000000) == 0)
            {
                lastSequenceNumber++;
                smppheader.sequence = lastSequenceNumber;
            }
            smppheader.command = smpprequest.command;
            smppheader.status = 0;
            if(abyte0 == null)
                smppheader.length = 16;
            else
                smppheader.length = 16 + abyte0.length;
            smpprequest.sequenceNumber = smppheader.sequence;
            if((smpprequest.command & 0x80000000) == 0)
                pendingRequests.push(smpprequest);
            smppEncoder smppencoder = new smppEncoder();
            try
            {
                smppencoder.smppHeader(smppheader);
            }
            catch(encoderException encoderexception)
            {
                throw new SMSException(encoderexception);
            }
            if(debugon)
                log("HEADER: " + smppencoder);
            byte abyte1[] = smppencoder.getBytes();
            byte abyte2[];
            if(abyte0 != null)
                abyte2 = new byte[abyte1.length + abyte0.length];
            else
                abyte2 = new byte[abyte1.length];
            for(int i = 0; i < abyte1.length; i++)
                abyte2[i] = abyte1[i];

            if(abyte0 != null)
            {
                for(int j = 0; j < abyte0.length; j++)
                    abyte2[j + abyte1.length] = abyte0[j];

            }
            out.write(abyte2);
        }
        catch(IOException _ex)
        {
            bindtype = 0;
            disconnected = true;
            disconnectedError = 10010;
            throw new IOException("SMSC Connection closed (remotely)");
        }
        catch(InterruptedException _ex)
        {
            throw new SMSException(10011);
        }
        finally
        {
            if(debugon)
                log("*** FINISH");
            finished();
            if(debugon)
                log("*** FINISHED");
        }
    }

    public void get(GetCustomerResponse getcustomerresponse, Customer customer)
        throws SMSException, IOException
    {
        if(customer == null)
            throw new SMSException(10014);
        smppEncoder smppencoder = new smppEncoder();
        try
        {
            smppencoder.getCustomer(customer);
        }
        catch(encoderException encoderexception)
        {
            throw new SMSException(encoderexception);
        }
        putRequest(new smppRequest(20, customer, getcustomerresponse), smppencoder);
    }

    public void send(SendResponse sendresponse, Message message)
        throws SMSException, IOException
    {
        if(message == null)
            throw new SMSException(10014);
        smppEncoder smppencoder = new smppEncoder();
        try
        {
            if(message.recipients != null)
            {
                smppencoder.submitMulti(message);
                putRequest(new smppRequest(33, message, sendresponse), smppencoder);
                return;
            }
            if(debugon)
                log("encoding");
            smppencoder.submit(message);
            if(debugon)
                log("new request");
            smppRequest smpprequest = new smppRequest(4, message, sendresponse);
            if(debugon)
                log("put request");
            putRequest(smpprequest, smppencoder);
            if(debugon)
            {
                log("put request done");
                return;
            }
        }
        catch(encoderException encoderexception)
        {
            throw new SMSException(encoderexception);
        }
    }

    public void send(Message message)
        throws SMSException, IOException
    {
        send(null, message);
        getSyncResponse();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天天色综合天天| 一区视频在线播放| 亚洲欧洲成人精品av97| 亚洲国产日韩综合久久精品| 国产麻豆成人精品| 56国语精品自产拍在线观看| 日韩三级免费观看| 91精品1区2区| 99久久免费视频.com| 欧美一二三区在线| 亚洲精品国产视频| 成人看片黄a免费看在线| 日韩欧美中文字幕精品| 亚洲小少妇裸体bbw| 91麻豆6部合集magnet| 国产精品热久久久久夜色精品三区| 日韩高清中文字幕一区| 欧美日韩国产免费| 亚洲国产精品久久不卡毛片| 色88888久久久久久影院野外| 国产精品三级av在线播放| 国产成人精品影视| 久久精品亚洲国产奇米99| 麻豆91免费观看| 日韩精品一区二区三区视频播放| 图片区小说区国产精品视频| 欧洲激情一区二区| 乱一区二区av| 日韩精品中文字幕在线不卡尤物| 亚洲图片欧美激情| 成人免费黄色大片| 欧美激情一区二区三区| 91在线无精精品入口| 亚洲欧美日韩中文播放| 色婷婷精品久久二区二区蜜臀av| 中文字幕五月欧美| 在线观看成人小视频| 丝袜a∨在线一区二区三区不卡 | 成人一区二区视频| 久久久欧美精品sm网站| www.亚洲精品| 亚洲图片有声小说| 91精品黄色片免费大全| 韩国v欧美v日本v亚洲v| 久久久国产精华| 99久久婷婷国产精品综合| 亚洲国产精品嫩草影院| 91精品午夜视频| 久久免费视频一区| eeuss鲁片一区二区三区| 亚洲视频在线观看一区| 欧美日韩三级在线| 久久精品国产精品青草| 久久久www免费人成精品| 91一区二区三区在线观看| 午夜影院在线观看欧美| 欧美成人伊人久久综合网| 成人黄色一级视频| 亚洲成人激情自拍| 久久青草国产手机看片福利盒子 | 国产精品久久免费看| 色天天综合久久久久综合片| 国产乱码精品1区2区3区| 久久久精品蜜桃| 在线一区二区观看| 精品一区二区三区影院在线午夜| 国产精品美女久久久久av爽李琼 | 99国产精品99久久久久久| 亚洲影视资源网| 久久亚洲综合色一区二区三区| 色综合久久久久久久久久久| 麻豆freexxxx性91精品| 一区二区三区在线免费播放 | 亚洲精品美国一| 日韩一本二本av| 91黄色免费看| 国产精品69毛片高清亚洲| 午夜精彩视频在线观看不卡| 国产精品色在线| 久久奇米777| 日韩无一区二区| 色综合天天做天天爱| 国产成人免费视频精品含羞草妖精| 亚洲动漫第一页| 亚洲手机成人高清视频| 国产婷婷色一区二区三区四区 | 亚洲人123区| www国产成人免费观看视频 深夜成人网| 色综合久久久网| 国产成人午夜99999| 老司机精品视频导航| 婷婷亚洲久悠悠色悠在线播放| 国产精品欧美极品| 久久精品一区二区| 精品国产露脸精彩对白| 欧美一区二区三区四区高清| 欧美性感一区二区三区| 色综合中文综合网| 久久精品国产秦先生| 一区二区三区产品免费精品久久75| 国产欧美日韩在线视频| 精品久久五月天| 色综合久久久久综合体桃花网| 美腿丝袜一区二区三区| 亚洲色图欧洲色图| 亚洲成国产人片在线观看| 亚洲免费av高清| 亚洲少妇屁股交4| 欧美国产日本韩| 国产精品欧美久久久久一区二区| 久久久不卡影院| 国产欧美日韩另类一区| 国产亚洲人成网站| 中文字幕不卡在线观看| 国产精品乱码一区二区三区软件| 国产无一区二区| 中文在线免费一区三区高中清不卡| 国产日本欧美一区二区| 中文字幕精品一区二区三区精品| 欧美国产精品一区| **性色生活片久久毛片| 亚洲精品菠萝久久久久久久| 一区二区三区小说| 日产精品久久久久久久性色| 男女男精品视频网| 国内国产精品久久| 97久久精品人人做人人爽50路| 顶级嫩模精品视频在线看| 欧美无砖专区一中文字| 韩国一区二区三区| 国产一区在线看| www.av精品| 91福利国产成人精品照片| 欧美日本在线播放| 精品盗摄一区二区三区| 国产亚洲自拍一区| 一区二区三区在线免费观看 | 精品国产乱码久久久久久老虎| 亚洲精品在线电影| 国产精品二区一区二区aⅴ污介绍| 亚洲麻豆国产自偷在线| 美女在线一区二区| 成人激情小说乱人伦| 欧美三级中文字| 国产精品欧美一区喷水| 亚洲第一久久影院| 国产精品乡下勾搭老头1| 一本色道久久综合精品竹菊| 日韩午夜激情视频| 中文字幕在线不卡国产视频| 亚洲国产精品一区二区久久| 国产一区二区不卡| 欧美视频精品在线| 国产目拍亚洲精品99久久精品| 粉嫩av一区二区三区在线播放| 亚洲国产aⅴ成人精品无吗| 精品理论电影在线| 国产香蕉久久精品综合网| 亚洲精品大片www| 精品一区二区在线观看| 色综合天天综合| 日韩欧美在线一区二区三区| 中文字幕视频一区| 韩国精品主播一区二区在线观看 | 久久99精品一区二区三区| www.久久精品| 久久久美女毛片| 亚洲一区二区三区四区在线 | 亚洲激情在线播放| 久久99国内精品| 欧美挠脚心视频网站| 亚洲欧洲av色图| 国产成人精品亚洲午夜麻豆| 7777精品久久久大香线蕉| 亚洲免费在线观看视频| 免费观看久久久4p| 亚洲欧洲www| 麻豆久久久久久| 精品一区二区综合| 成人污污视频在线观看| 日韩一区二区中文字幕| 亚洲成人免费av| 91网址在线看| 中文字幕一区二区三区av| 精品一区二区三区在线播放视频| 欧美日韩中文一区| 亚洲黄色性网站| 99国产欧美久久久精品| 国产精品另类一区| 国产91丝袜在线观看| 欧美极品aⅴ影院| 国产原创一区二区| 久久精子c满五个校花| 国产资源在线一区| 久久亚洲精华国产精华液| 狠狠色狠狠色合久久伊人| 精品理论电影在线| 国产成人av电影在线| 国产农村妇女精品| 91网站最新网址|