git-svn-id: svn://elaine/murooma/trunk@74 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-07-06 17:33:56 +00:00
parent 67db37c774
commit ebddfc210a
2 changed files with 3 additions and 3 deletions

View file

@ -38,9 +38,9 @@ int main () {
timeval last;
gettimeofday(&last, NULL);
last.tv_sec -= 1000;
while (true)
while (cin.good())
{
c[0] = cin.get();
c[0] = cin.get(c);
c[1] = cin.get();
chunk->payload[idx++] = (int)c[0] + ((int)c[1] * 256);
if (idx == WIRE_CHUNK_SIZE)