开发者

how to read raw from any device ( ex. Keyboard ) in C

开发者 https://www.devze.com 2023-02-08 04:06 出处:网络
im wondering that i could share my keyboard device to another host by using ethernet protocol, but in order to do that, i must know how to read the \'keyboard input from port\' from my \'source host\'

im wondering that i could share my keyboard device to another host by using ethernet protocol, but in order to do that, i must know how to read the 'keyboard input from port' from my 'source host', after that i have to build some /dev/ on 'remote host' by ethernet packet which contain 'keyboard input' from 'source host'.

the real question is, how to identify and read the input device on 'source host' (perh开发者_如何学运维aps in C language)?

thx in advance :-)


If you're on Linux, it already exists. Otherwise use curses or Slang.


GNU screen sounds like the straightforward answer to sharing a session.

0

精彩评论

暂无评论...
验证码 换一张
取 消