GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::SFTP::BUFFER (3)

.ds Aq ’

NAME

Net::SFTP::Buffer - Read/write buffer class

CONTENTS

SYNOPSIS



    use Net::SFTP::Buffer;
    my $buffer = Net::SFTP::Buffer->new;



DESCRIPTION

Net::SFTP::Buffer inherits from Net::SSH::Perl::Buffer to provide read/write buffer functionality for SSH. SFTP buffers are exactly the same as SSH buffers, with a couple of additions:
o 64-bit integers

SFTP requires the use of 64-bit integers to represent very large file sizes. In Net::SFTP::Buffer 64-bit integers are implemented as Math::Pari objects.

o File attribute bundles

Attribute bundles are not strictly a simple data type—they are, in fact, made up of smaller pieces, like 32-bit integers, 64-bit integers, etc.--but for matters of convenience, it is easiest to provide methods to directly serialize/deserialize attributes from buffers.

USAGE

Usage of Net::SFTP::Buffer objects is exactly the same as usage of Net::SSH::Perl::Buffer objects, with additions of the following methods to support the above data types.

CW$buffer->get_int64

Extracts a 64-bit integer from $buffer and returns it as a Math::Pari object.

CW$buffer->put_int64($int)

Serializes a 64-bit integer $int into the buffer $buffer; $int can be either a Math::Pari object or a built-in Perl integer, if it is small enough to fit into a Perl int.

CW$buffer->get_attributes

Uses Net::SFTP::Attributes to extract a list of file attributes from $buffer, and returns a Net::SFTP::Attributes object containing those file attributes.

CW$buffer->put_attributes($attrs)

Serializes a Net::SFTP::Attributes object $attrs into the buffer $buffer.

AUTHOR & COPYRIGHTS

Please see the Net::SFTP manpage for author, copyright, and license information.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::SFTP::BUFFER (3) 2005-01-16

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.