/* Read header. */
int received = this.receive(header, headerLength, log.isDebugEnabled() ? "packet header" : null);
if(received != headerLength){
// todo reconnect?
throw new RecievedInvalidHeaderException("Failed to read header. Expected " + headerLength + " bytes, received "+ received+". todo try to reconnect once?");
}
/* Set IV. */
this.session.shannonRecv.nonce(IntegerUtilities.toBytes(this.session.keyRecvIv));