Revize 36c0667f
Přidáno uživatelem Eliška Mourycová před téměř 4 roky(ů)
Server/ServerApp/Program.cs | ||
---|---|---|
1 |
using DataDownload; |
|
1 |
using Connection; |
|
2 |
using DataDownload; |
|
2 | 3 |
using Parser.Parsers; |
3 | 4 |
using System; |
4 | 5 |
using System.Collections.Generic; |
... | ... | |
12 | 13 |
{ |
13 | 14 |
static void Main(string[] args) |
14 | 15 |
{ |
15 |
// ALEX
|
|
16 |
//CsvParser p = new CsvParser();
|
|
16 |
// ALEX
|
|
17 |
//CsvParser p = new CsvParser();
|
|
17 | 18 |
|
18 |
//p.Parse();
|
|
19 |
//p.Parse();
|
|
19 | 20 |
|
20 | 21 |
|
21 | 22 |
// test scenario - data download: |
22 |
DataDownloader dd = new DataDownloader(); |
|
23 |
List<string> savedFiles = new List<string>(); |
|
24 |
savedFiles.AddRange(dd.DownloadData(DataType.JIS, DataFormat.CSV, 2017, 2021, 0, 13)); |
|
25 |
savedFiles.AddRange(dd.DownloadData(DataType.POCASI, DataFormat.CSV, 2017, 2021, 0, 13)); |
|
26 |
savedFiles.AddRange(dd.DownloadData(DataType.STROJE, DataFormat.CSV, 2017, 2021, 0, 13)); |
|
27 |
|
|
23 |
//DataDownloader dd = new DataDownloader(); |
|
24 |
// List<string> savedFiles = new List<string>(); |
|
25 |
// savedFiles.AddRange(dd.DownloadData(DataType.JIS, DataFormat.CSV, 2017, 2021, 0, 13)); |
|
26 |
// savedFiles.AddRange(dd.DownloadData(DataType.POCASI, DataFormat.CSV, 2017, 2021, 0, 13)); |
|
27 |
// savedFiles.AddRange(dd.DownloadData(DataType.STROJE, DataFormat.CSV, 2017, 2021, 0, 13)); |
|
28 |
|
|
29 |
|
|
30 |
// Console.WriteLine("Saved files: "); |
|
31 |
// foreach(string s in savedFiles) |
|
32 |
//{ |
|
33 |
// Console.WriteLine(s); |
|
34 |
//} |
|
28 | 35 |
|
29 |
Console.WriteLine("Saved files: "); |
|
30 |
foreach(string s in savedFiles) |
|
31 |
{
|
|
32 |
Console.WriteLine(s);
|
|
33 |
} |
|
36 |
|
|
37 |
|
|
38 |
// test - connection:
|
|
39 |
AsynchronousSocketListener.StartListening();
|
|
40 |
|
|
34 | 41 |
|
35 | 42 |
Console.ReadLine(); |
36 | 43 |
} |
Také k dispozici: Unified diff
Re #8619. Simple server and client capable of sending and receiving data.