Code: Select all
//Bootstrap.java
AuthClient auth = new AuthClient(authserver, "TestUserName");
...
//AuthClient.java
public void binduser(String username) throws IOException {
Message msg = new Message(CMD_USR);
msg.addstring2(username);
sendmsg(msg); // What does msg.blob contain here?
Message rpl = recvmsg();
if(rpl.type != 0)
throw(new IOException("Unhandled reply " + rpl.type + " when binding username"));
}