public ClientEvent(ClientEventInterface clientparent,String host, int port, int loginmode, String clientid,
String clientpasswd, String spid, int displaymode) {
this.clientEventInterface=clientparent;
this.pconnect = new PConnectEvent(this.clientEventInterface,host, port, loginmode, clientid,
clientpasswd, spid, displaymode);
this.pconnect.start();
this.LoginResult = this.pconnect.Login();
if (this.LoginResult.ErrorCode != 0) {
this.pconnect.stop();