LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   source code prob. (https://www.linuxquestions.org/questions/programming-9/source-code-prob-414767/)

nick021 02-12-2006 11:28 PM

source code prob.
 
hi there ..

the printer can be connected to system through serial-port,parallel-port or throug usb..
so i want to know whether the source code for all three connection would be different or would they be same.

regards..

oulevon 02-13-2006 02:23 AM

Quote:

Originally Posted by nick021
hi there ..

the printer can be connected to system through serial-port,parallel-port or throug usb..
so i want to know whether the source code for all three connection would be different or would they be same.

regards..

Do you mean the drivers? Yes I believe they would be different because they are all different interfaces.

bulliver 02-13-2006 03:21 AM

Quote:

Do you mean the drivers? Yes I believe they would be different because they are all different interfaces.
I don't think this is true. The whole idea of having module drivers is that they are implementation independant. That is, the printer driver will sit on top of, and communicate to either the usb, pp, or serial port driver. As long as the interfaces put out a standard API for communication, the printer driver does not need to know the specifics of how it works.

mehuljv 02-13-2006 09:52 AM

I guess it shold be diffrent, when you are connecting printer to usb that means to say you have to write a usb driver, normal printer driver which simply outputs character on parallel port will not work.

Regards...


All times are GMT -5. The time now is 07:28 AM.