private void transmitAsynchronous(){
boolean working = true;
long retriesTimestamp =
this.smppSettings.getSubmitRetriesTimeout() * 1000;
while(working == true) {
BaseMTInfo info = null;
try {
info = this.queue.get(
this.settings.getQuerylinkTimeout());
if(info != null) {
if(safeStop == false) {
if(info.getRetries() == 0) {
working = sendSubmitSM(info);
if(working == false) {
unbind();
}
} else { //retries
long timestamp = System.currentTimeMillis() -
info.getTimestampLastRetries();
if(timestamp >= retriesTimestamp ) {
working = sendSubmitSM(info);
if(working == false) {
unbind();
}