/** Internal method to serialize and send a message. This method is not reentrant */ void send(Message msg) throws Exception { IpAddress dest = (IpAddress) msg.getDest(); byte[] buf = messageToBuffer(msg); doSend(buf, dest.getIpAddress(), dest.getPort()); }