private void backgroundWorkerQueryServers_DoWork(object sender, DoWorkEventArgs e) { MSClient msclient = new MSClient(); try { List <MSServerEntry> listServers = msclient.GetServerList(settings.msAddress, Convert.ToUInt16(settings.msPort)); // Query each of the individual servers asynchronously. foreach (MSServerEntry msse in listServers) { sq.Query(msse.strAddress, msse.unPort); } } catch (System.Net.Sockets.SocketException sockexception) { MSFail = sockexception.Message; } catch (Exception exception) { MSFail = exception.Message; } }
private void backgroundWorkerQueryServers_DoWork(object sender, DoWorkEventArgs e) { MSClient msclient = new MSClient(); try { List<MSServerEntry> listServers = msclient.GetServerList(settings.msAddress, Convert.ToUInt16(settings.msPort)); // Query each of the individual servers asynchronously. foreach (MSServerEntry msse in listServers) { sq.Query(msse.strAddress, msse.unPort); } } catch (System.Net.Sockets.SocketException sockexception) { MSFail = sockexception.Message; } catch (Exception exception) { MSFail = exception.Message; } }