public void sendResponsePdu(PduResponse pdu) { try { // encode the pdu into a buffer ChannelBuffer buffer = server.getTranscoder().encode(pdu); // always log the PDU logger.info("send PDU: {}", pdu); // write the pdu out & wait till its written ChannelFuture channelFuture = this.channel.write(buffer).await(); // check if the write was a success if (!channelFuture.isSuccess()) { // the write failed, make sure to throw an exception throw new SmppChannelException(channelFuture.getCause().getMessage(), channelFuture.getCause()); } } catch (Exception e) { logger.error("Fatal exception thrown while attempting to send response PDU: {}", e); } }
public void sendResponsePdu(PduResponse pdu) { try { // encode the pdu into a buffer ChannelBuffer buffer = server.getTranscoder().encode(pdu); // always log the PDU logger.info("send PDU: {}", pdu); // write the pdu out & wait till its written ChannelFuture channelFuture = this.channel.write(buffer).await(); // check if the write was a success if (!channelFuture.isSuccess()) { // the write failed, make sure to throw an exception throw new SmppChannelException(channelFuture.getCause().getMessage(), channelFuture.getCause()); } } catch (Exception e) { logger.error("Fatal exception thrown while attempting to send response PDU: {}", e); } }
public void sendResponsePdu(PduResponse pdu) { try { // encode the pdu into a buffer ChannelBuffer buffer = server.getTranscoder().encode(pdu); // always log the PDU logger.info("send PDU: {}", pdu); // write the pdu out & wait till its written ChannelFuture channelFuture = this.channel.write(buffer).await(); // check if the write was a success if (!channelFuture.isSuccess()) { // the write failed, make sure to throw an exception throw new SmppChannelException(channelFuture.getCause().getMessage(), channelFuture.getCause()); } } catch (Exception e) { logger.error("Fatal exception thrown while attempting to send response PDU: {}", e); } }
public void sendResponsePdu(PduResponse pdu) { try { // encode the pdu into a buffer ChannelBuffer buffer = server.getTranscoder().encode(pdu); // always log the PDU logger.info("send PDU: {}", pdu); // write the pdu out & wait till its written ChannelFuture channelFuture = this.channel.write(buffer).await(); // check if the write was a success if (!channelFuture.isSuccess()) { // the write failed, make sure to throw an exception throw new SmppChannelException(channelFuture.getCause().getMessage(), channelFuture.getCause()); } } catch (Exception e) { logger.error("Fatal exception thrown while attempting to send response PDU: {}", e); } }
channel.getPipeline().addLast(SmppChannelConstants.PIPELINE_SESSION_PDU_DECODER_NAME, new SmppSessionPduDecoder(server.getTranscoder()));
channel.getPipeline().addLast(SmppChannelConstants.PIPELINE_SESSION_PDU_DECODER_NAME, new SmppSessionPduDecoder(server.getTranscoder()));
channel.getPipeline().addLast(SmppChannelConstants.PIPELINE_SESSION_PDU_DECODER_NAME, new SmppSessionPduDecoder(server.getTranscoder()));
channel.getPipeline().addLast(SmppChannelConstants.PIPELINE_SESSION_PDU_DECODER_NAME, new SmppSessionPduDecoder(server.getTranscoder()));