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

NAME

  UAV::Pilot::ARDrone::Video::BuildIO

DESCRIPTION

Role for video stream handling modules to create the socket for reading the stream from the Parrot AR.Drone. Also sets up the AnyEvent io watcher.

PROVIDES

_build_io

   $class->_build_io({ driver => $driver })

Passed a UAV::Pilot::ARDrone::Driver. Sets up and returns a IO::Socket::INET object that connects to the host and video port for the AR.Drone.

init_event_loop

Called to setup an AnyEvent io watcher to process the incoming video data.

REQUIRES

_io

Returns a filehandle for reading video data.

_process_io

Called when there is IO data to read from _io.