|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T s
Length: 571 (0x23b) Types: TextFile Names: »server«
└─⟦4f9d7c866⟧ Bits:30007245 EUUGD6: Sikkerheds distributionen └─⟦b5330643c⟧ »./cops/perl-4.019/perl.tar.Z« └─⟦2b9a58213⟧ └─⟦this⟧ »perl-4.019/server«
#!./perl $pat = 'S n C4 x8'; $inet = 2; $echo = 7; $smtp = 25; $nntp = 119; $this = pack($pat,$inet,2345, 0,0,0,0); select(NS); $| = 1; select(stdout); if (socket(S,2,1,6)) { print "socket ok\n"; } else { die $!; } if (bind(S,$this)) { print "bind ok\n"; } else { die $!; } if (listen(S,5)) { print "listen ok\n"; } else { die $!; } for (;;) { print "Listening again\n"; if ($addr = accept(NS,S)) { print "accept ok\n"; } else { die $!; } @ary = unpack($pat,$addr); $, = ' '; print @ary; print "\n"; while (<NS>) { print; print NS; } }