- Timestamp:
- 09/29/07 18:53:09 (2 years ago)
- Files:
-
- 1 modified
-
trunk/apps/obexftp.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/apps/obexftp.c
r191 r199 247 247 static int cli_connect_uuid(const char *uuid, int uuid_len) 248 248 { 249 int ret ry;249 int ret, retry; 250 250 251 251 if (cli == NULL) { … … 268 268 269 269 /* Connect */ 270 if (obexftp_connect_src (cli, src_dev, device, channel, uuid, uuid_len) >= 0) 270 ret = obexftp_connect_src(cli, src_dev, device, channel, uuid, uuid_len); 271 if (ret >= 0) 271 272 return TRUE; 273 switch (errno) { 274 275 case ETIMEDOUT: 276 perror("The device may have moved out of range"); 277 break; /* retry */ 278 279 case ECONNREFUSED: 280 perror("The user may have rejected the transfer"); 281 return FALSE; 282 283 case EHOSTDOWN: 284 perror("The device may be out of range or turned off"); 285 break; /* retry */ 286 287 case EINPROGRESS: 288 perror("Interupted/bad reception or the device moved out of range"); 289 break; /* retry */ 290 291 default: 292 perror("error on connect()"); 293 break; 294 } 295 272 296 fprintf(stderr, "Still trying to connect\n"); 273 297 }
