41 // |
41 // |
42 FUNCTION |
42 FUNCTION |
43 main (int argc, char* argv[]) -> int |
43 main (int argc, char* argv[]) -> int |
44 { |
44 { |
45 HUFFMAN_Construct(); |
45 HUFFMAN_Construct(); |
|
46 |
|
47 if (argc != 1 and argc != 3) |
|
48 { |
|
49 fprintf (stderr, "usage: %s\nusage: %s <address> <password>\n", argv[0], argv[0]); |
|
50 return EXIT_FAILURE; |
|
51 } |
|
52 |
46 Interface::initialize(); |
53 Interface::initialize(); |
|
54 |
|
55 if (argc == 3) |
|
56 Interface::connect (argv[1], argv[2]); |
47 |
57 |
48 try |
58 try |
49 { |
59 { |
50 for (;;) |
60 for (;;) |
51 { |
61 { |