2
Net::VNC - A simple VNC client
7
my $vnc = Net::VNC->new({hostname => $hostname, password => $password});
10
print $vnc->name . ": " . $vnc->width . ' x ' . $vnc->height . "\n";
12
my $image = $vnc->capture;
13
$image->save("out.png");
16
Virtual Network Computing (VNC) is a desktop sharing system which uses
17
the RFB (Remote FrameBuffer) protocol to remotely control another
18
computer. This module acts as a VNC client and communicates to a VNC
19
server using the RFB protocol, allowing you to capture the screen of the
22
This module dies upon connection errors (with a timeout of 15 seconds)
27
The constructor. Given a hostname and a password returns a Net::VNC
30
my $vnc = Net::VNC->new({hostname => $hostname, password => $password});
33
Logs into the remote computer:
38
Returns the name of the remote computer:
40
print $vnc->name . ": " . $vnc->width . ' x ' . $vnc->height . "\n";
43
Returns the width of the remote screen:
45
print $vnc->name . ": " . $vnc->width . ' x ' . $vnc->height . "\n";
48
Returns the height of the remote screen:
50
print $vnc->name . ": " . $vnc->width . ' x ' . $vnc->height . "\n";
53
Captures the screen of the remote computer, returning an Image::Imlib2
56
my $image = $vnc->capture;
57
$image->save("out.png");
60
Leon Brocard acme@astray.com
62
Many thanks for Foxtons Ltd for giving me the opportunity to write this
66
Copyright (C) 2006, Leon Brocard
68
This module is free software; you can redistribute it or modify it under
69
the same terms as Perl itself.