private boolean readFirstMsg(){
		try{
		//װΪɶдԭʼ͵
		 this.dous=new DataOutputStream(client.getOutputStream());
	     this.dins=new DataInputStream(client.getInputStream());
	     MsgHead msg=reciveData(); //ȡһϢ:
	     if(msg.getType()==IMsgConstance.command_login){//ǵ½
	        MsgLogin ml=(MsgLogin)msg;
	        return checkLogin(ml);
	     }
	     if(msg.getType()==IMsgConstance.command_reg){//ע
	    	 MsgReg mr=(MsgReg)msg;
	    	 //ע,JK,ظӦϢ
	    	int jkNum= UserDao.regUser(mr.getPwd(), mr.getNikeName());
	    	MsgRegResp mrs=new MsgRegResp();//һӦϢ
	    	mrs.setTotalLen(4+1+4+4+1);
	    	mrs.setType(IMsgConstance.command_reg_resp);
	    	mrs.setDest(jkNum);
	    	mrs.setSrc(IMsgConstance.Server_JK_NUMBER);
	    	mrs.setState((byte)0);
	    	this.sendMsg2Me(mrs);//עӦϢ
	     }
		}catch(Exception ef){
			LogTools.ERROR(this.getClass(), "readFirstMsgʧ:"+ef);
		}
		return false;
	}