| 7729 | |
| 7730 | |
| 7731 | static void add_other_params(rem_port* port, ClumpletWriter& dpb, const ParametersSet& par) |
| 7732 | { |
| 7733 | /************************************** |
| 7734 | * |
| 7735 | * a d d _ o t h e r _ p a r a m s |
| 7736 | * |
| 7737 | ************************************** |
| 7738 | * |
| 7739 | * Functional description |
| 7740 | * Add parameters to a dpb to describe client-side |
| 7741 | * settings that the server should know about. |
| 7742 | * |
| 7743 | **************************************/ |
| 7744 | if (port->port_flags & PORT_dummy_pckt_set) |
| 7745 | { |
| 7746 | dpb.deleteWithTag(par.dummy_packet_interval); |
| 7747 | dpb.insertInt(par.dummy_packet_interval, port->port_dummy_packet_interval); |
| 7748 | } |
| 7749 | |
| 7750 | // Older version of engine not understand new tags and may process whole |
| 7751 | // DPB incorrectly. Check for protocol version is an poor attempt to make |
| 7752 | // guess about remote engine's version |
| 7753 | if (port->port_protocol >= PROTOCOL_VERSION11) |
| 7754 | { |
| 7755 | dpb.deleteWithTag(par.process_id); |
| 7756 | dpb.insertInt(par.process_id, getpid()); |
| 7757 | |
| 7758 | if (!dpb.find(par.process_name)) |
| 7759 | { |
| 7760 | PathName path(fb_utils::get_process_name()); |
| 7761 | |
| 7762 | ISC_systemToUtf8(path); |
| 7763 | ISC_escape(path); |
| 7764 | |
| 7765 | if (!dpb.find(isc_dpb_utf8_filename)) |
| 7766 | ISC_utf8ToSystem(path); |
| 7767 | |
| 7768 | dpb.insertString(par.process_name, path); |
| 7769 | } |
| 7770 | } |
| 7771 | |
| 7772 | if (port->port_protocol >= PROTOCOL_VERSION13) |
| 7773 | { |
| 7774 | dpb.deleteWithTag(par.client_version); |
| 7775 | dpb.insertString(par.client_version, FB_VERSION); |
| 7776 | } |
| 7777 | } |
| 7778 | |
| 7779 | |
| 7780 | static void add_working_directory(ClumpletWriter& dpb, const PathName& node_name) |
no test coverage detected