Wily::Message 0.02
Sponsored Links
Wily::Message 0.02 Ranking & Summary
File size:
0.021 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
969
Date added:
2007-02-27
Publisher:
Sam Holden
Wily::Message 0.02 description
Wily::Message is a Perl extension to handle Wily Messages.
SYNOPSIS
use Wily::Message;
use Wily::Connect;
# opens a file in wily and exits when the window is destroyed
my $win_id;
my $ws = Wily::Connect::connect();
my $wm = Wily::Message->new(Wily::Message::WMnew, 0, 0, 0, 1,
/tmp/file_to_edit);
$ws->syswrite($wm->flatten());
my $buffer = ;
until (Wily::Message::complete_message($buffer)) {
$ws->sysread($buffer, 1024, length($buffer));
}
$buffer = $wm->from_string($buffer);
if ($wm->{type} == Wily::Message::WRerror) {
die "Error WMnew: $wm->{s}n";
} elsif ($wm->{type} == Wily::Message::WRnew) {
$win_id = $wm->{window_id};
$wm = Wily::Message->new(Wily::Message::WMattach, $win_id, 0, 0,
Wily::Message::WEdestroy);
$ws->syswrite($wm->flatten());
until (Wily::Message::complete_message($buffer)) {
$ws->sysread($buffer, 1024, length($buffer));
}
$buffer = $wm->from_string($buffer);
if ($wm->{type} == Wily::Message::WRerror) {
die "Error WMattach: $wm->{s}n";
} elsif ($wm->{type} == Wily::Message::WRattach) {
} else {
die "Expected a WRattach, but didnt get one";
}
} else {
die "Expected a WRnew, but didnt get one";
}
while (1) {
until (Wily::Message::complete_message($buffer)) {
$ws->sysread($buffer, 1024, length($buffer));
}
$buffer = $wm->from_string($buffer);
if ($wm->{type} == Wily::Message::WEdestroy and $wm->{window_id} == $win_id) {
last;
}
}
A simple object wrapper around Wily messages with a helper function to assist in extracting messages from the wily connection.
SYNOPSIS
use Wily::Message;
use Wily::Connect;
# opens a file in wily and exits when the window is destroyed
my $win_id;
my $ws = Wily::Connect::connect();
my $wm = Wily::Message->new(Wily::Message::WMnew, 0, 0, 0, 1,
/tmp/file_to_edit);
$ws->syswrite($wm->flatten());
my $buffer = ;
until (Wily::Message::complete_message($buffer)) {
$ws->sysread($buffer, 1024, length($buffer));
}
$buffer = $wm->from_string($buffer);
if ($wm->{type} == Wily::Message::WRerror) {
die "Error WMnew: $wm->{s}n";
} elsif ($wm->{type} == Wily::Message::WRnew) {
$win_id = $wm->{window_id};
$wm = Wily::Message->new(Wily::Message::WMattach, $win_id, 0, 0,
Wily::Message::WEdestroy);
$ws->syswrite($wm->flatten());
until (Wily::Message::complete_message($buffer)) {
$ws->sysread($buffer, 1024, length($buffer));
}
$buffer = $wm->from_string($buffer);
if ($wm->{type} == Wily::Message::WRerror) {
die "Error WMattach: $wm->{s}n";
} elsif ($wm->{type} == Wily::Message::WRattach) {
} else {
die "Expected a WRattach, but didnt get one";
}
} else {
die "Expected a WRnew, but didnt get one";
}
while (1) {
until (Wily::Message::complete_message($buffer)) {
$ws->sysread($buffer, 1024, length($buffer));
}
$buffer = $wm->from_string($buffer);
if ($wm->{type} == Wily::Message::WEdestroy and $wm->{window_id} == $win_id) {
last;
}
}
A simple object wrapper around Wily messages with a helper function to assist in extracting messages from the wily connection.
Wily::Message 0.02 Screenshot
Wily::Message 0.02 Keywords
Message 0.02
Wily Messages
Messages
to handle
perl extension
buffer
wily
id
0
type
win
Wily::Message
WilyMessage
Wily::Message 0.02
Libraries
Programming
Bookmark Wily::Message 0.02
Wily::Message 0.02 Copyright
WareSeeker periodically updates pricing and software information of Wily::Message 0.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Wily::Message 0.02 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Wily is a Perl extension for interfacing with Wily. Free Download
Wily::RPC is a Perl extension for the Wily RPC interface. Free Download
Wily::Connect is a Perl module that connects to a running Wily text editor. Free Download
WML::Card is a Perl extension for builiding WML Cards according to the browser being used. Free Download
WML::Deck is a Perl extension for builiding WML Decks. Free Download
JIMaths is a small application that helps teachers automate the process of creating simple arithmetic problems. Free Download
Mail::Summary is a Perl module that can scan read your mail! Free Download
Audio::ESD is a Perl extension for talking to the Enlightened Sound Daemon. Free Download
Latest Software
Popular Software
Favourite Software