Ignore:
Timestamp:
Jul 27, 2008, 4:33:30 AM (12 years ago)
Author:
Pascal Terjan
Message:
  • Add missing part in detach code (a lot of cleanup and fixes needed)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/neercs.h

    r2588 r2589  
    147147    /* Detaching */
    148148    int attached;                /* Are we attached to a terminal */
    149     int socket;                  /* Socket to ask for attaching */
    150     char *socket_path;           /* Socket to ask for attaching */
     149    int s_socket;                /* Socket to write to the server */
     150    int c_socket;                /* Socket to write to the client */
     151    char *s_socket_path;         /* Socket to write to the server */
     152    char *c_socket_path;         /* Socket to write to the client */
    151153    char *socket_dir;            /* Where to create the socket */
    152154    char *session_name;          /* Name of the session */
     
    218220int detach(struct screen_list* screen_list);
    219221int request_attach(struct screen_list* screen_list);
    220 char * build_socket_path(char *socket_dir, char *session_name);
    221 int create_socket(struct screen_list* screen_list);
    222 char * connect_server(char *socket_path, struct screen_list* screen_list);
     222char * build_socket_path(char *socket_dir, char *session_name, int client);
     223int create_client_socket(struct screen_list* screen_list);
     224int create_server_socket(struct screen_list* screen_list);
     225int connect_client(struct screen_list* screen_list);
     226char * connect_server(struct screen_list* screen_list);
    223227char ** list_sockets(char *socket_dir, char *session_name);
    224228int server_main(int *to_grab, char **to_start, struct screen_list *screen_list);
    225 int send_event(caca_event_t ev, int sock);
     229int send_event(caca_event_t ev, struct screen_list* screen_list);
    226230
    227231/* Screens management */
Note: See TracChangeset for help on using the changeset viewer.