public void process(ByteBuffer buffer, Client sockector){		
		if(sockector.isHandShak()){// 已经握手处理				
			if(sockector.getProtocolVersionInt() < WebSocketConstants.SPLITVERSION6){// 通过0x00,0xff分隔数据		
				String msg = CoderUtils.decode(buffer);
				if(MyStringUtil.isBlank(msg)){
					return;
				}
				
				log.info("the msg received: " + msg);
				
				/*HashMap<String,String> requestData = new HashMap<String,String>();
				sockector.addRequest(requestData);
				requestData.put(Constants.FILED_MSG, msg);*/
				Request requestData= sockector.getRequestWithFile();		    	
		    	String requestIndex = requestData.getCrrentRequestIndex();
				
				HashMap<String,String> data = MyStringUtil.parseKeyValue(msg);
				sockector.addRequest(data);
				data.put(WebSocketConstants.REQUEST_INDEX, requestIndex);
				
			}else{// 通过复杂的数据帧格式来传递数据
				parserVersion6(buffer,sockector);
			}
		}else{// 进行握手处理
			String msg = CoderUtils.decode(buffer);
			if(MyStringUtil.isBlank(msg)){
				return;
			}
			
			log.info("the msg received: \r\n" + msg);
			
			HashMap<String,String> requestData = new HashMap<String,String>();
			sockector.addRequest(requestData);
			
			try{
				WebSocketRequest requestInfo = parserRequest(msg);
				
				requestData.put(Constants.FILED_MSG, generateHandshake(requestInfo));
				requestData.put(Constants.HANDSHAKE, Constants.HANDSHAKE);
				sockector.setProtocolVersion(requestInfo.getSecVersion().toString());//设置协议版本
			}catch(UnsupportedEncodingException e){
				e.printStackTrace();
			}
		}
	}