private PConnect pconnect;
private Result LoginResult;
public Client(String host, int port, int loginmode, String clientid,
String clientpasswd, String spid, int displaymode) {
this.pconnect = new PConnect(host, port, loginmode, clientid,
clientpasswd, spid, displaymode);
this.pconnect.start();
this.LoginResult = this.pconnect.Login();
if (this.LoginResult.ErrorCode != 0) {
this.pconnect.stop();