/// <summary> /// Send exam list to client. /// </summary> /// <param name="client"></param> /// <param name="filename"></param> private static void SendExamListToClient(TcpClient client, object data) { _log.AppendToLog("Sending exam list to client: " + ((IPEndPoint)client.Client.RemoteEndPoint).Address.ToString(), LogType.Info); _csv = new CsvImport(_exampath); var list = _csv.GetExamNames(); _server.SendPacket(client, new AvailibleExams(list)); }