Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (msg == "STATUS") Response.SendStatus(stream, _clients.Count.ToString());
- if (msg == "DUMPLIST") DumpList();
- private void DumpList()
- {
- using (var sw = new StreamWriter(@"C:\AlertServiceLogs\clients.csv", false))
- {
- foreach (var c in _clients)
- sw.WriteLine("{0},{1},{2},{3}", c.ComputerName, c.Connected, c.TClient.Client.RemoteEndPoint.AddressFamily, c.UserName);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement