attrib("_write" => "HI THERE!\n"); push_crap (); } sub push_crap { my $sink = enode ("csink-ssl.foo"); print $sink; my $sysnode = enode("system-args"); my $dir = $sysnode->attrib("startup-directory"); my $file = $dir . "/" . "randomtext"; open (BLARG, $file) || die "shit.\n"; while () { my $line = $_; print $line; $sink->attrib("_write" => $line); } close BLARG; } sub on_new_data { my $node = shift; my $data = shift; my $length = shift; print "data: "; print "--$data--\n"; } sub on_close { my $node = shift; print "we have closed; the page(with headers) is:\n"; print "$page\n"; print "\n"; print "bye!\n"; #$node->call("entity:exit"); } sub on_error { my $node = shift; my $err = shift; print "we have received an error:\n"; print "$err\n"; $node->call("entity:exit"); } $node = enode("csink-ssl.foo"); $node->attrib("action" => "connect"); ?>