Changeset 4213 for neercs


Ignore:
Timestamp:
Jan 1, 2010, 11:30:03 PM (10 years ago)
Author:
Sam Hocevar
Message:

Document the client main loop.

File:
1 edited

Legend:

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

    r4164 r4213  
    164164}
    165165
    166 
     166/*
     167 * The main client loop.
     168 *
     169 * Repeat forever:
     170 *  - if data is available on the client socket, read it and interpret it:
     171 *    - "DETACH": exit the loop
     172 *    - "UPDATE": update screen with the given canvas data
     173 *    - "REFRESH": refresh the whole display
     174 *    - "CURSOR": set cursor position
     175 *    - "TITLE": set window or display title
     176 *  - wait for an input event with a 10ms timeout
     177 */
    167178void mainloop(struct screen_list *screen_list)
    168179{
Note: See TracChangeset for help on using the changeset viewer.