Esempio n. 1
0
 public bool connectToCatalogue()
 {
     mySelfClient = LibraryInterfaceClient.Utils.createClient(adresse_catalogue, int.Parse(port_catalogue));
     if (mySelfClient.Connect()) {
         mySelfClient.Subscribe(handleToolsEvents);
         appendTextToLog("Connected to catalog server!" + Environment.NewLine);
         return true;
     }
     else
         MessageBox.Show("Impossible d'atteindre le serveur catalogue demandé (adresse = " + adresse_catalogue + ", port = " + port_catalogue + ")");
     return false;
 }
Esempio n. 2
0
 public bool connect(String ip, String port)
 {
     mySelf = LibraryInterfaceClient.Utils.createClient(ip, int.Parse(port));
     if (mySelf.Connect()) {
         mySelf.Subscribe(handleToolsEvents);
         return true;
     }
     else
         MessageBox.Show("Impossible d'atteindre le serveur demandé (adresse = " + ip + ", port = " + port+")",
                         "Attention",
                         MessageBoxButtons.OK);
     return false;
 }
Esempio n. 3
0
 public bool connectToCatalogue()
 {
     mySelfClient = LibraryInterfaceClient.Utils.createClient(adresse_catalogue, int.Parse(port_catalogue));
     if (mySelfClient.Connect())
     {
         mySelfClient.Subscribe(handleToolsEvents);
         appendTextToLog("Connected to catalog server!" + Environment.NewLine);
         return(true);
     }
     else
     {
         MessageBox.Show("Impossible d'atteindre le serveur catalogue demandé (adresse = " + adresse_catalogue + ", port = " + port_catalogue + ")");
     }
     return(false);
 }
Esempio n. 4
0
 public bool connect(String ip, String port)
 {
     mySelf = LibraryInterfaceClient.Utils.createClient(ip, int.Parse(port));
     if (mySelf.Connect())
     {
         mySelf.Subscribe(handleToolsEvents);
         return(true);
     }
     else
     {
         MessageBox.Show("Impossible d'atteindre le serveur demandé (adresse = " + ip + ", port = " + port + ")",
                         "Attention",
                         MessageBoxButtons.OK);
     }
     return(false);
 }