| 512 | |
| 513 | |
| 514 | bool ISC_check_if_remote(const tstring& file_name, bool implicit_flag) |
| 515 | { |
| 516 | /************************************** |
| 517 | * |
| 518 | * I S C _ c h e c k _ i f _ r e m o t e |
| 519 | * |
| 520 | ************************************** |
| 521 | * |
| 522 | * Functional description |
| 523 | * Check to see if a path name resolves to a |
| 524 | * remote file. If implicit_flag is true, then |
| 525 | * analyze the path to see if it resolves to a |
| 526 | * file on a remote machine. Otherwise, simply |
| 527 | * check for an explicit node name. |
| 528 | * |
| 529 | **************************************/ |
| 530 | tstring temp_name = file_name; |
| 531 | tstring host_name; |
| 532 | return ISC_extract_host(temp_name, host_name, implicit_flag) != ISC_PROTOCOL_LOCAL; |
| 533 | } |
| 534 | |
| 535 | |
| 536 | iscProtocol ISC_extract_host(Firebird::PathName& file_name, |
no test coverage detected