suppose i want to read data from a serial communication which is connected to another computer.
Code:
read(FileDescriptor, &Buffer, BuffSize);
and now another process on the first computer wants to send data through the serial line but to itself, the process won't be able to use
Code:
write(FileDescriptor, Data, sizeof(Data));
because it will arrive to the other computer.
so there's a way to use ioctl with a certain option that is specific to termio architecture. i found yesterday something that might be it, but haven't tested it yet.
if you have any idea, your help would be appreciated.
Edit: misuse of words....