public void run() {
		int t = 0;
		try {
			InputStream in = receivesocket.getInputStream();
			OutputStream out = sendsocket.getOutputStream();
			while (true) {
				int len = in.read(buffer);
				if (len != 0) {
					if (t == 0) {
						String s = new String(buffer).substring(0, len);
						System.out.println("init: "+s);

						String[] toMgr = CreateJson(s);
						System.out.println(toMgr==null);
						if(toMgr==null) continue;
						else System.out.println(toMgr.length);
						for (int i = 0; i < 1; i++) {
							out.write(toMgr[i].getBytes());
							out.flush();
							System.out.println(toMgr[i]);
						}
					}
					t = (t + 1) % 4;
				}
			}
		} catch (Exception e) {
			System.out.println("channel error!");
			e.printStackTrace();
		}

	}