Search in sources :

Example 1 with SMPPSessionLoginManager

use of com.zx.sms.session.smpp.SMPPSessionLoginManager in project SMSGate by Lihuanghe.

the class SMPPClientEndpointConnector method doinitPipeLine.

@Override
protected void doinitPipeLine(ChannelPipeline pipeline) {
    EndpointEntity entity = getEndpointEntity();
    pipeline.addLast(GlobalConstance.IdleCheckerHandlerName, new IdleStateHandler(0, 0, entity.getIdleTimeSec(), TimeUnit.SECONDS));
    pipeline.addLast("SmppServerIdleStateHandler", GlobalConstance.smppidleHandler);
    pipeline.addLast(SMPPCodecChannelInitializer.pipeName(), new SMPPCodecChannelInitializer());
    pipeline.addLast("sessionLoginManager", new SMPPSessionLoginManager(getEndpointEntity()));
}
Also used : IdleStateHandler(io.netty.handler.timeout.IdleStateHandler) SMPPSessionLoginManager(com.zx.sms.session.smpp.SMPPSessionLoginManager) EndpointEntity(com.zx.sms.connect.manager.EndpointEntity)

Example 2 with SMPPSessionLoginManager

use of com.zx.sms.session.smpp.SMPPSessionLoginManager in project SMSGate by Lihuanghe.

the class SMPPServerEndpointConnector method doinitPipeLine.

@Override
protected void doinitPipeLine(ChannelPipeline pipeline) {
    super.doinitPipeLine(pipeline);
    EndpointEntity entity = getEndpointEntity();
    pipeline.addLast(GlobalConstance.IdleCheckerHandlerName, new IdleStateHandler(0, 0, entity.getIdleTimeSec(), TimeUnit.SECONDS));
    pipeline.addLast("SmppServerIdleStateHandler", GlobalConstance.smppidleHandler);
    pipeline.addLast(SMPPCodecChannelInitializer.pipeName(), new SMPPCodecChannelInitializer());
    pipeline.addLast("sessionLoginManager", new SMPPSessionLoginManager(getEndpointEntity()));
}
Also used : IdleStateHandler(io.netty.handler.timeout.IdleStateHandler) SMPPSessionLoginManager(com.zx.sms.session.smpp.SMPPSessionLoginManager) EndpointEntity(com.zx.sms.connect.manager.EndpointEntity)

Aggregations

EndpointEntity (com.zx.sms.connect.manager.EndpointEntity)2 SMPPSessionLoginManager (com.zx.sms.session.smpp.SMPPSessionLoginManager)2 IdleStateHandler (io.netty.handler.timeout.IdleStateHandler)2