private void init(LoginInfo info, int action_code, short host_port,
                      String host, byte[] data) {
        LoginInfo = info;
        //Mpobt@̏
        try {
            RIS.connect(ROS);
        } catch (IOException ex1) {
            ex1.printStackTrace();
        }
        //Xg[̏
        ByteArrayOutputStream baos = new ByteArrayOutputStream(BUFF_SIZE);
        DataOutputStream dos = new DataOutputStream(baos);
        //f[^̍쐬
        try {
            dos.writeInt(LoginInfo.getUserID());
            dos.writeInt(action_code);
            dos.write(LoginInfo.getPassword());
            dos.writeInt(LoginInfo.getSessionID());
            dos.writeInt(host == null ? 0 : host.length());
            if (host != null) {
                dos.write(host.getBytes());
                dos.writeShort(host_port);
                if (data == null) {
                    throw new IOException("zXg͂̂Ƀf[^");
                }
            }
            dos.writeInt(data == null ? 0 : data.length);
            if (data != null) {
                dos.write(data, 0, data.length);
            }
            dos.flush();
            baos.flush();
            Data = baos.toByteArray();
        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }