Search in sources :

Example 1 with SgipSessionLoginManager

use of com.zx.sms.session.sgip.SgipSessionLoginManager in project SMSGate by Lihuanghe.

the class SgipClientEndpointConnector 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("SgipServerIdleStateHandler", GlobalConstance.sgipidleHandler);
    pipeline.addLast(SgipCodecChannelInitializer.pipeName(), new SgipCodecChannelInitializer());
    pipeline.addLast("sessionLoginManager", new SgipSessionLoginManager(getEndpointEntity()));
}
Also used : SgipSessionLoginManager(com.zx.sms.session.sgip.SgipSessionLoginManager) IdleStateHandler(io.netty.handler.timeout.IdleStateHandler) EndpointEntity(com.zx.sms.connect.manager.EndpointEntity)

Example 2 with SgipSessionLoginManager

use of com.zx.sms.session.sgip.SgipSessionLoginManager in project SMSGate by Lihuanghe.

the class SgipServerEndpointConnector 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("SgipServerIdleStateHandler", GlobalConstance.sgipidleHandler);
    pipeline.addLast(SgipCodecChannelInitializer.pipeName(), new SgipCodecChannelInitializer());
    pipeline.addLast("sessionLoginManager", new SgipSessionLoginManager(getEndpointEntity()));
}
Also used : SgipSessionLoginManager(com.zx.sms.session.sgip.SgipSessionLoginManager) IdleStateHandler(io.netty.handler.timeout.IdleStateHandler) EndpointEntity(com.zx.sms.connect.manager.EndpointEntity)

Aggregations

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