private void writeTransportHeader(DataOutputStream out) throws RemoteException {
  try {
    DataOutputStream dataOut=new DataOutputStream(out);
    dataOut.writeInt(TransportConstants.Magic);
    dataOut.writeShort(TransportConstants.Version);
  }
 catch (  IOException e) {
    throw new ConnectIOException("error writing JRMP transport header",e);
  }
}

private void writeTransportHeader ( DataOutputStream out ) throws RemoteException { try { DataOutputStream dataOut = new DataOutputStream ( out ) ; dataOut . writeInt ( TransportConstants . Magic ) ; dataOut . writeShort ( TransportConstants . Version ) ; } catch ( IOException e ) { throw new ConnectIOException ( "error writing JRMP transport header" , e ) ; } }
send transport header over stream .
