Parallel port programming in c/c++
I'm trying to create a program in c/c++, wherein it mimic the printer side. Im trying to receive the data send through parallel port. Sample a window client connected through parallel port then issue command "copy /b <filename> lpt1:>. then I must receive the same data it send.
Does anyone has idea how to do these?
I've tried these before in Redhat platform, b4 I almost got almost all the data, but sometimes there's missing data. But in Fedora I cant get the complete data.
Does anyone knows how to receive the data coming in parallel port wherein I can receive the data as it is?
Sorry for my poor english. thanks! in advance.