Help for this page

Select Code to Download


  1. or download this
    socket(SOCK, PF_INET, SOCK_STREAM, $proto)  || die "socket: $!";
    connect(SOCK, $paddr)    || die "connect: $!";
    
    print "Host reached\n-----------------\n" ;
    
  2. or download this
        send SOCK, "$lines\n",MSG_OOB ;
    
    ...
    
        print "Closed\n" ;
        close SOCK ;