sources/main.cpp

changeset 30
21fba5183768
parent 27
089e37c0887e
child 31
b5b5a6a96d91
equal deleted inserted replaced
29:e534f2f78196 30:21fba5183768
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 {

mercurial