Revize 4a417b8b
Přidáno uživatelem Eliška Mourycová před více než 3 roky(ů)
Server/ServerApp/Program.cs | ||
---|---|---|
2 | 2 |
using ServerApp.DataDownload; |
3 | 3 |
using ServerApp.Parser.Parsers; |
4 | 4 |
using ServerApp.Predictor; |
5 |
using ServerApp.User; |
|
5 | 6 |
using System; |
6 | 7 |
using System.Collections.Generic; |
7 | 8 |
using System.IO; |
9 |
using System.Threading; |
|
8 | 10 |
|
9 | 11 |
namespace ServerApp |
10 | 12 |
{ |
... | ... | |
17 | 19 |
public string Port { get; set; } |
18 | 20 |
} |
19 | 21 |
|
20 |
class Program |
|
22 |
public class Program
|
|
21 | 23 |
{ |
22 | 24 |
|
23 |
|
|
25 |
public static void NotifyUserMessage(string message) |
|
26 |
{ |
|
27 |
Console.WriteLine("Received user message: " + message); |
|
28 |
} |
|
24 | 29 |
|
25 | 30 |
static void Main(string[] args) |
26 | 31 |
{ |
... | ... | |
32 | 37 |
return; |
33 | 38 |
} |
34 | 39 |
|
40 |
// create a thread for commands accepting: |
|
41 |
//Thread inputThread = new Thread(CommandsAcceptor.AcceptCommand); |
|
42 |
//inputThread.Start(); |
|
43 |
|
|
35 | 44 |
|
36 | 45 |
|
37 | 46 |
//DataParser p = new DataParser("data/"); |
... | ... | |
80 | 89 |
|
81 | 90 |
// test - connection: |
82 | 91 |
//AsynchronousSocketListener asl = new AsynchronousSocketListener(); |
83 |
// asl.StartListening();
|
|
92 |
//asl.StartListening(); |
|
84 | 93 |
|
85 | 94 |
|
86 | 95 |
//NaiveBayesClassifier naiveBayesClassifier = new NaiveBayesClassifier(); |
Také k dispozici: Unified diff
Re #8691. Url config improvements + thread for commands accepting prepared.