📄 cmpp30eventadapter.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: SMProxy30.java
package com.huawei.smproxy;
import com.huawei.insa2.comm.*;
import com.huawei.insa2.comm.cmpp.message.*;
import com.huawei.insa2.comm.cmpp30.CMPP30Connection;
import com.huawei.insa2.comm.cmpp30.CMPP30Transaction;
import com.huawei.insa2.comm.cmpp30.message.CMPP30DeliverMessage;
// Referenced classes of package com.huawei.smproxy:
// SMProxy30
class CMPP30EventAdapter extends PEventAdapter
{
private SMProxy30 smProxy;
private CMPP30Connection conn;
public CMPP30EventAdapter(SMProxy30 smProxy)
{
this.smProxy = null;
conn = null;
this.smProxy = smProxy;
conn = smProxy.getConn();
}
public void childCreated(PLayer child)
{
CMPP30Transaction t = (CMPP30Transaction)child;
CMPPMessage msg = t.getResponse();
CMPPMessage resmsg = null;
if(msg.getCommandId() == 2)
{
resmsg = new CMPPTerminateRepMessage();
smProxy.onTerminate();
} else
if(msg.getCommandId() == 8)
resmsg = new CMPPActiveRepMessage(0);
else
if(msg.getCommandId() == 5)
{
CMPP30DeliverMessage tmpmes = (CMPP30DeliverMessage)msg;
resmsg = smProxy.onDeliver(tmpmes);
} else
{
t.close();
}
if(resmsg != null)
{
try
{
t.send(resmsg);
}
catch(PException e)
{
e.printStackTrace();
}
t.close();
}
if(msg.getCommandId() == 2)
conn.close();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -