Ignore:
Timestamp:
Nov 20, 2009, 1:27:05 PM (10 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Moved client initialisation to client.c
File:
1 edited

Legend:

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

    r3972 r3974  
    531531{
    532532    pid_t pid;
    533     char *sess;
    534533
    535534    pid = fork();
     
    573572    }
    574573   
    575    
    576     create_socket(screen_list, SOCK_CLIENT);
    577     while ((sess = connect_socket(screen_list, SOCK_SERVER)) == NULL)
    578         usleep(100);
    579     free(sess);
    580 
    581     /* Create main canvas and associated caca window */
    582     screen_list->cv = caca_create_canvas(0, 0);
    583     screen_list->dp = caca_create_display(screen_list->cv);
    584 
    585     if (!screen_list->dp)
    586         return -3;
    587 
    588     caca_set_display_time(screen_list->dp, screen_list->delay * 1000);
    589     caca_set_cursor(screen_list->dp, 1);
    590 
    591     request_attach(screen_list);
    592 
    593574    return 0;
    594575}
Note: See TracChangeset for help on using the changeset viewer.