Net-Connection/Net-Connection
Zane C. B-H 84d585f4b5 update date and prepare to release 2019-08-12 05:40:36 -05:00
..
lib/Net bump to 0.2.0 and note changes 2019-08-10 23:59:52 -05:00
t upate the MANIFEST, add the create test, and a few small fixes to the module 2019-07-05 23:35:59 -05:00
Changes update date and prepare to release 2019-08-12 05:40:36 -05:00
MANIFEST upate the MANIFEST, add the create test, and a few small fixes to the module 2019-07-05 23:35:59 -05:00
Makefile.PL all ready for 0.0.0 2019-07-06 22:57:27 -05:00
README all ready for 0.0.0 2019-07-06 22:57:27 -05:00
ignore.txt add initial files 2019-07-02 03:05:36 -05:00

README

Net-Connection

This module crates a object that basically serves as a means to store basic
connection information and retrieve it.

    use Net::Connection;

    #create a hash ref with the desired values
    my $args={
              'foreign_host' => '1.2.3.4',
              'local_host' => '4.3.2.1',
              'foreign_port' => '22',
              'local_port' => '11132',
              'sendq' => '1',
              'recvq' => '0',
              'pid' => '34342',
              'uid' => '1000',
              'state' => 'ESTABLISHED',
              'proto' => 'tcp4'
              };
    
    # create the new object using the hash ref
    my $conn=Net::Connection->new( $args );
    
    # the same thing, but this time resolve the UID to a username
    $args->{'uid_resolve'}='1';
    $conn=Net::Connection->new( $args );
    
    # now with PTR lookup
    $args->{'ptrs'}='1';
    $conn=Net::Connection->new( $args );
    
    # prints a bit of the connection information...
    print "L Host:".$conn->local_host."\n".
    "L Port:".$conn->local_host."\n".
    "F Host:".$conn->foreign_host."\n".
    "F Port:".$conn->foreign_host."\n";

INSTALLATION

To install this module, run the following commands:

	perl Makefile.PL
	make
	make test
	make install

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the
perldoc command.

    perldoc Net::Connection

You can also look for information at:

    RT, CPAN's request tracker (report bugs here)
        https://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Connection

    AnnoCPAN, Annotated CPAN documentation
        http://annocpan.org/dist/Net-Connection

    CPAN Ratings
        https://cpanratings.perl.org/d/Net-Connection

    Search CPAN
        https://metacpan.org/release/Net-Connection

    Repository
		http://gitea.eesdp.org/vvelox/Net-Connection


LICENSE AND COPYRIGHT

This software is Copyright (c) 2019 by Zane C. Bowers-Hadley.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)