bi-directional parallel communications

bi-directional parallel communications

Post by krisp » Mon, 08 Feb 1999 04:00:00

When, if ever, is FreeBSD going to get support for bi-directional
parallel comunications?




1. Bi-directional inted communications


  I'm trying to write an inetd perl server which should have
bi-directional communication with a perl client script. The
communication between the client and server is working but between the
server and the client isn't. Does anyone can help me further here. Any
help would be appriciated very much.

Thanks Henk

psad            1200/tcp                   # Process sar AIX daemon

psad  stream  tcp    nowait  root    /tmp/server.prl


open (OUTFILE, ">/tmp/effe1");  # Open output file
select(OUTFILE); $|++;          # Unbuffered output OUTFILE
select(STDOUT); $|++;           # Unbuffered output STDOUT

while (<STDIN>) {
    print OUTFILE $_;           # Write client lines to OUTFILE

print "Output for standard out\n";      # Send lind to client
close (OUTFILE);                        # Close output file


use IO::Socket;

$\="\r\n";                      # Output delimiter
# Setup connection to server , for now on same host

$sock = IO::Socket::INET->new(  PeerAddr    => 'localhost',
                                PeerPort    => 1200,
                                Proto       => 'tcp',
unless ($sock) {die "Socket could not be created, Reason: $!"}
$sock->autoflush(1);                    # prevent buffering $sock

foreach (1..100) {
    print $sock "Line $_";  # Send lines to server

# Hope to receive output from server and store in file

open (OUTFILE, ">/tmp/effe2") || die "can't open outfile $!";
$a = <$sock>;
print OUTFILE $a;

close (OUTFILE);        # Close output file
close ($sock);          # Close connection

2. Linux Frequently Asked Questions with Answers (Part 2 of 6)

3. Bi-directional inetd communication

4. :

5. bi-directional inetd communication between perl scripts

6. pppd config, LCP timeout error

7. bi-directional parallel ports/brother HL-630

8. Getting Started with PPP and Linux.

9. Bi-directional parallel port device

10. Lexmark Printers / bi-directional parallel

11. Accessing bi-directional parallel port w/C

12. IEEE 1284 (bi-directional) == parallel null modem cable?

13. Accessing bi-directional parallel port w/C