Rev 452 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 452 | Rev 1398 | ||
|---|---|---|---|
| Line 8... | Line 8... | ||
| 8 | const byte DEBUG_LEVEL = 3; //0, 1, 2, 3 |
8 | const byte DEBUG_LEVEL = 3; //0, 1, 2, 3 |
| 9 | static SerialConnection sc; |
9 | static SerialConnection sc; |
| 10 | static Daemon d; |
10 | static Daemon d; |
| 11 | static TcpServer tcps; |
11 | static TcpServer tcps; |
| 12 | //static Downloader dl; |
12 | //static Downloader dl; |
| - | 13 | static tcpport = 1200; |
|
| 13 | 14 | ||
| 14 | static private string argPort; |
15 | static private string argPort; |
| 15 | static private int argBaud; |
16 | static private int argBaud; |
| 16 | 17 | ||
| 17 | static void Main(string[] args) { |
18 | static void Main(string[] args) { |
| Line 53... | Line 54... | ||
| 53 | //... här ska man testa om igen... |
54 | //... här ska man testa om igen... |
| 54 | 55 | ||
| 55 | } else { |
56 | } else { |
| 56 | 57 | ||
| 57 | d = new Daemon(sc); |
58 | d = new Daemon(sc); |
| 58 | tcps = new TcpServer( |
59 | tcps = new TcpServer(tcpport); |
| 59 | d.addServer(tcps); |
60 | d.addServer(tcps); |
| 60 | 61 | ||
| 61 | Thread t = new Thread(d.thread); |
62 | Thread t = new Thread(d.thread); |
| 62 | t.Start(); |
63 | t.Start(); |
| 63 | 64 | ||