Skip to content

Commit

Permalink
raw message for tcp server
Browse files Browse the repository at this point in the history
  • Loading branch information
hqnghi88 committed May 13, 2022
1 parent bbd38c8 commit a2114b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Expand Up @@ -160,10 +160,15 @@ private Map<IAgent, LinkedList<ConnectorMessage>> pushAndFetchthreadSafe(final i
return allMessage;
}
case PUSCH_RECEIVED_MESSAGE_THREAD_SAFE_ACTION: {
final ArrayList<IAgent> bb = this.boxFollower.get(groupName);
ArrayList<IAgent> bb = this.boxFollower.get(groupName);
if (bb == null) {
bb = this.boxFollower.get(this.boxFollower.keySet().toArray()[0]);
}
for (final IAgent agt : bb) {
final LinkedList<ConnectorMessage> messages = receivedMessage.get(agt);
if (messages != null) { messages.add(message); }
if (messages != null) {
messages.add(message);
}
}
break;
}
Expand Down
Expand Up @@ -112,7 +112,7 @@ public void run() {
DEBUG.LOG("Socket error" + e1);
/// isOnline = false;
} catch (final Exception e) {
DEBUG.LOG("Exception occured in socket");
DEBUG.LOG("Exception occured in socket "+e.getMessage());
}
}
}
Expand Down
Expand Up @@ -102,7 +102,7 @@ public void receivedMessage(final String sender, final String message) {
if (mte.equals(MessageType.COMMAND_MESSAGE)) {
extractAndApplyCommand(sender, message);
} else {
final String r = MessageFactory.unpackReceiverName(message);
final String r = isRaw ? message : MessageFactory.unpackReceiverName(message);
storeMessage(r, message);
}
}
Expand Down

0 comments on commit a2114b8

Please sign in to comment.