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; }
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; }
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); }
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); }