// generated 2006/3/17 14:40:21 CET by campeur@gnappy.(none) // using glademm V2.6.0 // // newer (non customized) versions of this file go to window1.hh_new // you might replace // class foo : public foo_glade { ... }; // by // typedef foo_glade foo; // if you didn't make any modifications to the widget #ifndef _WINDOW1_HH # include "window1_glade.hh" # define _WINDOW1_HH #define PORT_ECOUTE 30000 #include //Gestion de la fenetre //include pour les sockets #include #include #include #include #include #include #include //Pour les thread #include #include #include //Pour les sémaphores void * processAff(void * arg) ; void * processCnx(void * arg) ; //Variables char * buffTemp ; //buffer temporaire de reception int end, err ; //fin de programme, code erreur /* variables de traitement du textwiew */ Glib::RefPtr buff ; //buffer de texte Gtk::TextIter iter ; //emplacement du curseur int num_car, num_ligne ; // variables permettant le positionnement du texte /* variables socket */ int sockC;//Socket serveur int sockS;//Socket client sockaddr_in idClient, idServer; //Variables d'id des sockets int sockErreur ; // code erreur socket socklen_t taille ; // taille du socket /* variables thread */ pthread_t thAffichage, //Thread qui va gérer l'affichage thConnec ; //Thread qui va gérer la connexion sem_t sema ; //sémaphore class window1 : public window1_glade { private : //Fonctions des actions sur la fenetre void on_enregistrer_sous1_activate(); void on_quitter1_activate(); void on_supprimer1_activate(); void on____propos1_activate(); void on_btnEnregistrer_clicked(); void on_BtnDemarrer_clicked(); void on_BtnArreter_clicked(); void on_btnClose_clicked(); public : void ajouterLigne() ; void ajouterCar() ; //Constructeur; Destructeur window1() ; ~window1() ; }; #endif