本文整理匯總了Java中org.mobicents.protocols.ss7.mtp.Mtp3TransferPrimitive類的典型用法代碼示例。如果您正苦於以下問題:Java Mtp3TransferPrimitive類的具體用法?Java Mtp3TransferPrimitive怎麽用?Java Mtp3TransferPrimitive使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Mtp3TransferPrimitive類屬於org.mobicents.protocols.ss7.mtp包,在下文中一共展示了Mtp3TransferPrimitive類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onMtp3TransferMessage
import org.mobicents.protocols.ss7.mtp.Mtp3TransferPrimitive; //導入依賴的package包/類
/**
* Method to capture M3UA raw messages. The messages are stored
* in M3UA FIFO buffer, over API it is possible to read the buffer.
*
* @param msg M3UA message
*/
@Override
public void onMtp3TransferMessage(Mtp3TransferPrimitive msg) {
//throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
logger.debug("[[[[[[[[[[ onMtp3TransferMessage ]]]]]]]]]]");
logger.debug(msg.toString());
// M3UA FIFO
/*StringBuilder sb = new StringBuilder();
for (byte b : msg.encodeMtp3()) {
sb.append(String.format("%02X", b));
}
//m3ua_fifo.add("{" + Instant.now().toEpochMilli() + ": " + sb.toString() + "}");
m3ua_fifo.add("{" + System.currentTimeMillis() + ": " + sb.toString() + "}");
while (m3ua_fifo.size() > m3ua_fifo_max_size) {
m3ua_fifo.pop();
}*/
}
示例2: sendMessage
import org.mobicents.protocols.ss7.mtp.Mtp3TransferPrimitive; //導入依賴的package包/類
@Override
public void sendMessage(Mtp3TransferPrimitive mtp3TransferPrimitive) throws IOException {
super.sendMessage(mtp3TransferPrimitive);
this.storeTransferMessageToPcap(mtp3TransferPrimitive, true);
}
示例3: sendTransferMessageToLocalUser
import org.mobicents.protocols.ss7.mtp.Mtp3TransferPrimitive; //導入依賴的package包/類
@Override
public void sendTransferMessageToLocalUser(Mtp3TransferPrimitive msg, int seqControl) {
super.sendTransferMessageToLocalUser(msg, seqControl);
this.storeTransferMessageToPcap(msg, false);
}