Connecting the Device Driver using Sockets in C and Qt interface