hi. i would like to ask if the following operation is possible.
imagin a device which has a number of rs 232 ports. in this case we shall take four. then imagin that you have two keyboards and two computers connected to these ports.
now is it possible to write a program in C( or c++ if possible ) in which input from one keyboard connected to one port can be redirected to another port so that it can be directed to a selected computer and serve there as keyboard input?
i have written some rough pseudo code. would you guys mind taking a look at it and say if it possible or not?
start pseudocode
create four variables / most likely pointers
link each of them to one port on the device
while (true)
{
wait for input to apear in one of the variables
write that input onto another variable so that it can go to a second port and to a computer
}