Subversion Repositories HomeAutomation

Rev

Rev 2111 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 2111 Rev 2112
Line 19... Line 19...
19
  if (feof($socket))
19
  if (feof($socket))
20
  {
20
  {
21
    throw new Exception("socket not open");
21
    throw new Exception("socket not open");
22
  }
22
  }
23
 
23
 
24
  $result = fread($socket, 8096);
24
  $result = fread($socket, 8096 * 8);
-
 
25
 
-
 
26
  while (strpos($result, "\n") === FALSE)
-
 
27
  {
-
 
28
    $result .= fread($socket, 8096 * 8);
-
 
29
  }
25
 
30
 
26
  return $result;
31
  return $result;
27
}
32
}
28
 
33
 
29
function atomjs_write($socket, $command)
34
function atomjs_write($socket, $command)