Mercurial > hg > xemacs-beta
comparison lib-src/winclient.c @ 4558:d9fcb5442c95
Automated merge with file:/Sources/xemacs-21.5-checked-out
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Wed, 21 May 2008 21:47:42 +0200 |
parents | 61aff09a7589 |
children | 422b4b4fb2a6 |
comparison
equal
deleted
inserted
replaced
4557:790bd95b84c1 | 4558:d9fcb5442c95 |
---|---|
38 static char * getNextArg (const char **ptr, unsigned *len); | 38 static char * getNextArg (const char **ptr, unsigned *len); |
39 | 39 |
40 /* -- Post-Include Defines -------------------------------------------------- */ | 40 /* -- Post-Include Defines -------------------------------------------------- */ |
41 | 41 |
42 /* Timeouts & delays */ | 42 /* Timeouts & delays */ |
43 #define CONNECT_RETRIES 10 | |
43 #define CONNECT_DELAY 500 /* ms */ | 44 #define CONNECT_DELAY 500 /* ms */ |
44 #define TRANSACTION_TIMEOUT 5000 /* ms */ | 45 #define TRANSACTION_TIMEOUT 5000 /* ms */ |
45 #define MAX_INPUT_IDLE_WAIT INFINITE /* ms */ | 46 #define MAX_INPUT_IDLE_WAIT INFINITE /* ms */ |
46 | 47 |
47 /* DDE Strings */ | 48 /* DDE Strings */ |
204 /* Close the handles */ | 205 /* Close the handles */ |
205 CloseHandle (pi.hThread); | 206 CloseHandle (pi.hThread); |
206 CloseHandle (pi.hProcess); | 207 CloseHandle (pi.hProcess); |
207 | 208 |
208 /* Try to connect */ | 209 /* Try to connect */ |
209 for (n = 0; n < 5; n++) | 210 for (n = 0; n < CONNECT_RETRIES; n++) |
210 { | 211 { |
211 Sleep (CONNECT_DELAY); | 212 Sleep (CONNECT_DELAY); |
212 | 213 |
213 hConv = DdeConnect (idInst, hszService, hszTopic, NULL); | 214 hConv = DdeConnect (idInst, hszService, hszTopic, NULL); |
214 | 215 |