comparison main.c @ 636:6273c4ea6e51

Improve help.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 22 Jun 2014 06:25:16 +0300
parents 43eee625021a
children bda973fa2b3b
comparison
equal deleted inserted replaced
635:43eee625021a 636:6273c4ea6e51
32 #endif 32 #endif
33 33
34 #define SET_PROFILE_PREFIX "http://www.newbienudes.com/profile/%s/" 34 #define SET_PROFILE_PREFIX "http://www.newbienudes.com/profile/%s/"
35 #define SET_NICK_SEPARATOR ':' 35 #define SET_NICK_SEPARATOR ':'
36 36
37 #define SET_PROXY_PORT 1080
37 #define SET_MAX_HISTORY (64) // Command history length 38 #define SET_MAX_HISTORY (64) // Command history length
38 #define SET_KEEPALIVE (15*60) // Ping/keepalive period in seconds 39 #define SET_KEEPALIVE (15*60) // Ping/keepalive period in seconds
39 40
40 41
41 typedef struct 42 typedef struct
55 56
56 57
57 /* Options 58 /* Options
58 */ 59 */
59 int optPort = 8005, 60 int optPort = 8005,
60 optProxyPort = 1080, 61 optProxyPort = SET_PROXY_PORT,
61 optProxyType = TH_PROXY_NONE, 62 optProxyType = TH_PROXY_NONE,
62 optProxyAuthType = TH_PROXY_AUTH_NONE, 63 optProxyAuthType = TH_PROXY_AUTH_NONE,
63 optProxyAddrType = TH_PROXY_ADDR_DOMAIN; 64 optProxyAddrType = TH_PROXY_ADDR_DOMAIN;
64 int optUserColor = 0x000000; 65 int optUserColor = 0x000000;
65 char *optServer = "chat.newbienudes.com", 66 char *optServer = "chat.newbienudes.com",
140 "Supported proxy types are SOCKS 4/4A and SOCKS 5.\n" 141 "Supported proxy types are SOCKS 4/4A and SOCKS 5.\n"
141 "(Only user/pass auth and no auth supported, no GSSAPI!)\n" 142 "(Only user/pass auth and no auth supported, no GSSAPI!)\n"
142 "These can be set with the -P option as follows:\n" 143 "These can be set with the -P option as follows:\n"
143 "\n" 144 "\n"
144 " -P <type>://[<userid>[:passwd]@]<host>[:<port>]\n" 145 " -P <type>://[<userid>[:passwd]@]<host>[:<port>]\n"
146 " -P socks4://localhost:9000\n"
147 " -P socks5://foobar:pass@localhost\n"
145 "\n" 148 "\n"
146 "Type can be socks4, socks4a or socks5. Only socks5\n" 149 "Type can be socks4, socks4a or socks5. Only socks5\n"
147 "supports user/pass authentication.\n" 150 "supports user/pass authentication. Default port is %d.\n"
148 "\n" 151 "\n"
149 "Supported rooms (for option '-r'):\n"); 152 "Supported rooms (for option '-r'):\n",
153 SET_PROXY_PORT);
150 154
151 for (i = 0; i < nn_room_data_n; i++) 155 for (i = 0; i < nn_room_data_n; i++)
152 { 156 {
153 printf(" %s - %s (port %d)\n", 157 printf(" %s - %s (port %d)\n",
154 nn_room_data[i].name, 158 nn_room_data[i].name,
155 nn_room_data[i].desc, 159 nn_room_data[i].desc,
156 nn_room_data[i].port); 160 nn_room_data[i].port);
157 } 161 }
162
163 printf("\n");
158 } 164 }
159 165
160 166
161 BOOL argSplitStr(const char *src, const char *at, char **res1, char **res2) 167 BOOL argSplitStr(const char *src, const char *at, char **res1, char **res2)
162 { 168 {