RuneK has asked for the wisdom of the Perl Monks concerning the following question:

Hi Gurus, I'm trying to develop a program that can connect to a firewall service on Linux box via the parallel port. I guess I will have to do some sockets programming, but I'm at a loss on how to connect via the parallel port. I know how to communicate with the service and on which port now I "just" need the rest. Does anyone have any experiences in this area and maybe some exampels? Thanks. RuneK

Replies are listed 'Best First'.
Re: Connect to service via parallel port
by shotgunefx (Parson) on Feb 27, 2002 at 10:26 UTC
    You would probably be better off using a Serial port if you can. There's a module Device::Serialport for dealing with serial ports on Nix. I haven't seen anything (yet) written in Perl that deals with Parallel ports. I haven't programmed a centronics port since I wrote a mod player for the Disney Sound Source. (Way back..).

    Could make a program to log in through the serial and use Net::Telnet or something similar to do what you need. You might find this C Parallel port code helpful

    -Lee

    "To be civilized is to deny one's nature."

      The code in plip.c might be a good start for an XS module - I haven't any time or anything to test it against at the moment I'm afraid

      /J\

Re: Connect to service via parallel port
by gellyfish (Monsignor) on Feb 27, 2002 at 11:22 UTC

    Linux does support the Parallel Line Interface Protocol (PLIP), but this is more of Linux question than a Perl one.

    There is a probably a Linux PLIP HOWTO knocking around somewhere that you can read

    /J\