public  byte[] PacRecv (Socket socket)throws IOException{
		 byte[] buf=new byte[512];
	     
	      boolean flag=true;
	      DataInputStream dataIn;
	     try{
	      while(flag){
	      dataIn=getDataInput(socket);
	      dataIn.read(buf);
	      flag=false;
	      }
	     }catch(Exception e){
	    	 e.printStackTrace();   
	         
	     }
	     String receive =new String(buf);     
	     String [] receive_short = receive.split("\\$");  //עһҪת\\
	     buf = receive_short[0].getBytes();
	      return buf;
	 }