Changeset 4381 for neercs


Ignore:
Timestamp:
Mar 7, 2010, 12:41:47 PM (10 years ago)
Author:
Sam Hocevar
Message:

The server properly quits.

Location:
neercs/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/mini-client.c

    r4380 r4381  
    6868        if (!strncmp(buf, "OK", strlen("OK")))
    6969        {
    70             printf("Connection established\n");
     70            fprintf(stderr, "neercs: connection established\n");
    7171        }
    7272    }
     
    8282void client_fini(void)
    8383{
     84    socket_puts(outsock, "QUIT /tmp/neercs.sock.client");
     85
    8486    caca_free_display(dp);
    8587    caca_free_canvas(cv);
  • neercs/trunk/src/mini-server.c

    r4380 r4381  
    5050        socket_puts(outsock, "OK");
    5151    }
     52    else if (!strncmp(buf, "QUIT ", strlen("QUIT ")))
     53    {
     54        return 0;
     55    }
    5256
    5357    return 1;
Note: See TracChangeset for help on using the changeset viewer.