private boolean writeEncrypted(boolean didWork, int i, Pipe<NetPayloadSchema> pipe) {
long chnl = Pipe.peekLong(pipe, 0xF&NetPayloadSchema.MSG_ENCRYPTED_200_FIELD_CONNECTIONID_201);
ClientConnection cc = (ClientConnection)ccm.lookupConnectionById(chnl);
if (null==cc) {
return false;
}
final int msgIdx = Pipe.takeMsgIdx(pipe);
final long channelId = Pipe.takeLong(pipe);
assert(chnl==channelId);
final long arrivalTime = Pipe.takeLong(pipe);
int meta = Pipe.takeByteArrayMetaData(pipe);
int len = Pipe.takeByteArrayLength(pipe);
if (showWrites) {
logger.info("/////\n/// has connection "+((cc!=null)&&cc.isValid())+" channelId "+channelId+" write encrypted length:"+len);
}
didWork = wrapupUpEncryptedToSingleWrite(didWork, i,
pipe, msgIdx, channelId, meta, len,
cc);
return didWork;
}