public boolean connect(String host, int port){
		try {
			if (host == null || host.equals("")) {
				host = CommonUtil.DEFAULT_HOST;
			}
			s=new Socket(host, port);
			dos=new DataOutputStream(s.getOutputStream());
			dis=new DataInputStream(s.getInputStream());
System.out.println(CommonUtil.SUCCEED_CONNECTE);
			dos.writeUTF(message);//发送帐号密码信息
			String conmsg = dis.readUTF();
			if (conmsg.equals(CommonUtil.COMFIRM_FAIL_MARK)) {
				this.showReturnMessage(CommonUtil.COMFIRM_FAIL);
				bconnected = false;
			} else {
System.out.println(CommonUtil.COMFIRM_SUCCESS);
				bconnected = true;
			}
		} catch(IllegalArgumentException e) {
			this.showReturnMessage(CommonUtil.PORT_ILLEGAL);
		} catch (UnknownHostException e) {
			this.showReturnMessage(CommonUtil.HOST_ERROR);
		} catch(SocketException e) {
			this.showReturnMessage(CommonUtil.PORT_ERROR);
		} catch (IOException e) {
			this.showReturnMessage(CommonUtil.IOEXCEPTION_MESSAGE);
			System.exit(0);
		}
		return bconnected;
	}