myRid = new ByteIdentifier(Utility.sha1(caller));
otherEndId = new ByteIdentifier(Utility.sha1(callee));
sId = new ScopeID();
ByteIdentifier b = new ByteIdentifier(Utility.sha1(otherEndId.getId()));
sId.addSegment(b);
ItemName sendData = new ItemName(sId, otherEndId);
client.publishRootScope(b, strategy, null);
Logger.log("Calling " + callee);
client.publishItem(sendData, strategy, null);
event = client.getNextEvent();
System.arraycopy(myRid.getId(), 0, msg, 0, myRid.length());
if (event.getType() == EventType.START_PUBLISH) {
client.publishData(event.getId(), msg, strategy, null);
}
msgSeqNum++;
ItemName receiveData = new ItemName(sId, myRid);
client.subscribeItem(receiveData, strategy, null);
event = client.getNextEvent();
if (event.getType() == EventType.PUBLISHED_DATA) {