public void codeVersion6(Client sockector, Response msg){		
		byte[] msgs = CoderUtils.toByte(msg.getBody());
		WebSocketMessage messageFrame = sockector.getRequestWithFile().<WebSocketMessage>getMessageHeader(msg.getRequestIndex());
		
		if(messageFrame == null){
			messageFrame = new WebSocketMessage();
		}
		messageFrame.setDateLength(msgs.length);
		
		byte[] headers = new byte[2];
		// todo list
		headers[0] = WebSocketMessage.FIN;// 需要调整
		headers[0] |= messageFrame.getRsv1() | messageFrame.getRsv2() | messageFrame.getRsv3() | WebSocketMessage.TXT;
		headers[1] = 0;
		//headers[1] |=  messageFrame.getMask() | messageFrame.getPayloadLen();		
		headers[1] |=  0x00 | messageFrame.getPayloadLen();
		msg.appendBytes(headers);// 头部控制信息
		
		if (messageFrame.getPayloadLen() == WebSocketMessage.HAS_EXTEND_DATA) {// 处理数据长度为126位的情况
			msg.appendBytes(CoderUtils.shortToByte(messageFrame.getPayloadLenExtended()));
		} else if (messageFrame.getPayloadLen() == WebSocketMessage.HAS_EXTEND_DATA_CONTINUE) {// 处理数据长度为127位的情况
			msg.appendBytes(CoderUtils.longToByte(messageFrame.getPayloadLenExtendedContinued()));
		}

		/*if(messageFrame.isMask()){// 做了掩码处理的，需要传递掩码的key
			byte[] keys = messageFrame.getMaskingKey();
			msg.appendBytes(messageFrame.getMaskingKey());
			
			for(int i = 0; i < msgs.length; ++i){// 进行掩码处理
				msgs[i] ^= keys[i % 4];
			}
		}*/
		
		msg.appendBytes(msgs);
		
		sockector.getRequestWithFile().clearMessageHeader(msg.getRequestIndex());// 清理每次连接交互的数据
	}