The hardware device that acts as switching as well as connecting unit is called
The hardware device that acts as switching as well as connecting unit is called Multiplexer.
In electronics, a multiplexer (or mux) is a device that selects one of several analog or digital input signals and forwards the selected input into a single line. A multiplexer of inputs has select lines, which are used to select which input line to send to the output.