Ryo Okamoto > Net-FTPServer-1.124 > Net::FTPServer::DBeg1::IOBlob

Download:
Net-FTPServer-1.124.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
Stalled  2
View/Report Bugs
Module Version: 1.1   Source   Latest Release: Net-FTPServer-1.125

NAME ^

Net::FTPServer::DBeg1::IOBlob - The example DB FTP server personality

SYNOPSIS ^

  use Net::FTPServer::DBeg1::IOBlob;

METHODS ^

$io = Net::FTPServer::DBeg1::IOBlob ('r', $dbh, $blob_id);
$io = Net::FTPServer::DBeg1::IOBlob ('w', $dbh, $blob_id);

Create an IO handle for reading or writing a PostgreSQL blob.

$io->getc ();

Read 1 byte from the buffer and return it

$io->read ($buffer, $nbytes, [$offset]);
$io->sysread ($buffer, $nbytes, [$offset]);

Read $nbytes from the handle and place them in $buffer at offset $offset.

$io->write ($buffer, $nbytes, [$offset]);
$io->syswrite ($buffer, $nbytes, [$offset]);

Write $nbytes to the handle from $buffer offset $offset.

$io->print ($buffer);
$io->close;

Close the IO handle.

AUTHORS ^

Richard Jones (rich@annexia.org).

COPYRIGHT ^

Copyright (C) 2000 Biblio@Tech Ltd., Unit 2-3, 50 Carnwath Road, London, SW6 3EG, UK

SEE ALSO ^

Net::FTPServer(3), perl(1)

syntax highlighting: