Rev 1872 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1872 | Rev 1879 | ||
|---|---|---|---|
| Line 81... | Line 81... | ||
| 81 | 81 | ||
| 82 | 82 | ||
| 83 | 83 | ||
| 84 | function atomd_initialize($host, $port) |
84 | function atomd_initialize($host, $port) |
| 85 | { |
85 | { |
| 86 | $socket = atomd_connect( |
86 | $socket = atomd_connect($host, $port); |
| 87 | 87 | ||
| 88 | while (atomd_data_available($socket)) |
88 | while (atomd_data_available($socket)) |
| 89 | { |
89 | { |
| 90 | $packet = atomd_read_packet($socket); // Read initial prompt |
90 | $packet = atomd_read_packet($socket); // Read initial prompt |
| 91 | } |
91 | } |