- GETTING STARTED
- SEE ALSO
Net::FRN - Perl interface to Free Radio Network protocol.
use Net::FRN; my $client = Net::FRN->client ( Host => '01server.lpdnet.ru', Port => 10026, Callsign => 'SP513', Name => 'Alexander', Email => 'email@example.com', Password => 'MYPASSWD', Net => 'Russia', Type => FRN_TYPE_CROSSLINK, Country => 'Russian Federation', City => 'St-Petersburg', Locator => 'KP50FA' ); $client->run;
Net::FRN is an implementation of Free Radio Network protocol.
Free Radio Network client/server is a program package which is widely used by radio amateurs to link radio repeaters over Internet. For more information on FRN see http://freeradionetwork.eu
There are 4 components implementing different parts of the FRN service:
Wrapper around everything else, containing methods to generate Client, Server and AuthServer objects (see below).
Component implementing fully functional FRN client.
Not yet implemented.
Not yet implemented.
use Net::FRN; my $client = Net::FRN->client( Host => '01server.lpdnet.ru', Port => 10026, Callsign => 'SP513', Name => 'Alexander', Email => 'firstname.lastname@example.org', Password => 'MYPASSWD', Net => 'Russia', Type => FRN_TYPE_CROSSLINK, Country => 'Russian Federation', City => 'St-Petersburg', Locator => 'KP50FA' );
Acceptable parameters for client() are:
Host name or IP address of FRN server.
Port numer which FRN server listens on.
Operator's real name
Operator's E-mail address.
Network (a.k.a. room) name to connect to. To change network even on the same server you should disconnect and connect again to the new network.
Type of FRN client. Use FRN_TYPE_* constants or return value of mkLinkString().
City where operator is located
Part of the city or QTH-locator
Use handler() method to set handler.
$client->handler('onClinetList', &showClientList); $client->handler('onMessage', &printMessage);
Available handlers are:
onPing() is called every time client sends a ping packet right after buffering ping sequence.
onLogin() is called right after succeccful logging in.
onIdle() calls when client is idle.
onClientList() is called every time the list of clients received from server.
onNetworkList() is called every time the list of networks recieved from the server.
onMessage() is called every time the message is received.
onBanList() is called every time the list of banned clients received from server.
onMuteList() is called every time the list of muted clients received from server.
FRN client types:
Alexander Frolov <email@example.com>
Up-to-date source and information about Net::FRN::Client can be found at http://orn.froller.net
http://freeradionetwork.eu, Free Radio Network web site
http://lpdnet.ru, Russian LPD Network web site
Reorganize parameters of client().
Add reconnection to backup server.