09/02
2016
Rough implementation of an RFC1413 (IDENT) client
This package currently implements a client for the RFC1413 (IDENT) protocol. I don't currently have plans to add a server, but making one would be trivial., (*1)
Install this package via composer:, (*2)
composer require tigron/ident
Very simple:, (*3)
$ident = new Tigron\Ident\IdentClient(); echo $ident->getUser(); echo $ident->getOsType();
Optionally, you can, (*4)
The constructor accepts some options as well:, (*5)
$ident = new Tigron\Ident\IdentClient($remote_address, $remote_port, $local_port, $ident_port, $timeout);
Some setters are provided, for your convenience:, (*6)
$ident->setRemoteAddress($remote_address); $ident->setRemotePort($remote_port); $ident->setLocalPort($local_port); $ident->setIdentPort($ident_port); $ident->setTimeout($timeout);