The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::GPSD::Server::Fake - Provides a Fake GPSD daemon server test harness.

SYNOPSIS

 use Net::GPSD::Server::Fake;
 use Net::GPSD::Server::Fake::Stationary;
 my $server=Net::GPSD::Server::Fake->new();
 my $stationary=Net::GPSD::Server::Fake::Stationary->new(lat=>38.865826,
                                                         lon=>-77.108574);
 $server->start($stationary);

DESCRIPTION

CONSTRUCTOR

new

Returns a new server

  my $server=Net::GPSD::Server::Fake->new(
               port=>'2947',
               name=>'GPSD',
               version=>Net::GPSD::Server::Fake->VERSION,
               debug=>1); 0=>none, 2=>default, 2+=>verbose

METHODS

start

Binds provider to port and starts server.

 $server->start($provider);

name

Gets or sets GPSD protocol name. This defaults to "GPSD" as some clients are picky.

  $obj->name('GPSD');
  my $name=$obj->name;

port

Returns the current TCP port.

  my $port=$obj->port;

version

Returns the version that the GPSD deamon reports in the L command. This default to the version of the Net::GPSD::Server::Fake->VERSION package.

  my $obj=Net$obj->version;
  my $version=$obj->version;

KNOWN LIMITATIONS

Only knows a few commands

Commands must be one per line.

Can't change providers mid stream.

Providers must remember state for watcher restarts.

Providers are queryed for a new point. However, there needs to be a way for providers to be able to trigger new points.

BUGS

Send issues to gpsd-dev email list

AUTHOR

Michael R. Davis, qw/gpsd michaelrdavis com/

LICENSE

Copyright (c) 2006 Michael R. Davis (mrdvt92)

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

gpsd http://gpsd.berlios.de/