Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.340.236 Times

Gnome2::VFS 1.061

  Date Added: April 09, 2010  |  Visits: 613

Gnome2::VFS

Report Broken Link
Printer Friendly Version


Product Homepage
Download (87 downloads)



Gnome2::VFS is a Perl interface to the 2.x series of the GNOME VFS library. SYNOPSIS use Gnome2::VFS; sub die_already { my ($action) = @_; die("An error occured while $action.n"); } die_already("initializing GNOME VFS") unless (Gnome2::VFS -> init()); my $source = "http://www.perldoc.com/about.html"; my ($result, $handle, $info); # Open a connection to Perldoc. ($result, $handle) = Gnome2::VFS -> open($source, "read"); die_already("opening connection to $source") unless ($result eq "ok"); # Get the file information. ($result, $info) = $handle -> get_file_info("default"); die_already("retrieving information about $source") unless ($result eq "ok"); # Read the content. my $bytes = $info -> { size }; my $bytes_read = 0; my $buffer = ""; do { my ($tmp_buffer, $tmp_bytes_read); ($result, $tmp_bytes_read, $tmp_buffer) = $handle -> read($bytes - $bytes_read); $buffer .= $tmp_buffer; $bytes_read += $tmp_bytes_read; } while ($result eq "ok" and $bytes_read < $bytes); die_already("reading $bytes bytes from $source") unless ($result eq "ok" && $bytes_read == $bytes); # Close the connection. $result = $handle -> close(); die_already("closing connection to $source") unless ($result eq "ok"); # Create and open the target. my $target = "/tmp/" . $info -> { name }; my $uri = Gnome2::VFS::URI -> new($target); ($result, $handle) = $uri -> create("write", 1, 0644); die_already("creating $target") unless ($result eq "ok"); # Write to it. my $bytes_written; ($result, $bytes_written) = $handle -> write($buffer, $bytes); die_already("writing $bytes bytes to $target") unless ($result eq "ok" && $bytes_written == $bytes); # Close the target. $result = $handle -> close(); die_already("closing $target") unless ($result eq "ok"); Gnome2::VFS -> shutdown();.

Requirements: No special requirements
Platforms: Linux
Keyword: Bytes Eq Gnome Vfs Handle Libraries Programming Read Result Unless
Users rating: 0/10

License: Freeware Size: 58.37 KB
USER REVIEWS
More Reviews or Write Review


GNOME2::VFS RELATED
Libraries  -  gnome-vfs-monikers 2.15.3
gnome-vfs-monikers is a Filesystem Abstraction library. Installation: The simplest way to compile this package is: 1. `cd to the directory containing the packages source code and type `./configure to configure the package for your system. If...
368.64 KB  
Libraries  -  gnome-vfs-obexftp 0.4
gnome-vfs-obexftp contains extra packages for extentions to GnomeVFS. Contains an OBEX module, VFS DBUS daemon, modified file module that notifies file modifications over DBUS. Note that if youre not using the standard dbus system bus address,...
655.36 KB  
Libraries  -  gnome-vfs 2.18.1 / 2.19.3
gnome-vfs is a Filesystem Abstraction library. It provides an abstraction layer for the reading, writing and execution of files. It is primarily used by the Nautilus file manager and other GNOME applications. A cause of confusion is the fact...
2.6 MB  
Libraries  -  gnome-vfsmm 2.18.0
gnome-vfsmm are C++ wrappers for gnome-vfs. Any help is welcomed. File bugs with patches (see http://www.gtkmm.org/bugs.shtml for patching procedure), and give suggestions. Installation: The simplest way to compile this package is: 1. `cd...
471.04 KB  
Libraries  -  Java-Gnome 4.0.3
Java-GNOME application is a set of Java bindings for the GNOME and GTK libraries that allow GNOME and GTK applications to be written in Java. The Java-Gnome API has been carefully designed to be easy to use, maintaining a good OO paridigm, yet...
174.08 KB  
Libraries  -  libvte-java 0.12.3
Java-GNOME is a set of Java bindings for GNOME and GTK libraries, so GNOME applications can be written in Java. libvte-java is implemented as a JNI layer that delegates the Java calls out to the underlying C library. Installation: The...
337.92 KB  
Libraries  -  cairo-java 1.0.8
Java-GNOME is a set of Java bindings for GNOME and GTK libraries, so GNOME applications can be written in Java. cairo-java is implemented as a JNI layer that delegates the Java calls out to the underlying C library. Installation: The...
358.4 KB  
Libraries  -  libgconf-java 2.12.6
Java-GNOME is a set of Java bindings for GNOME and GTK libraries, so GNOME applications can be written in Java. Java-GNOME is implemented as a JNI layer that delegates the Java calls out to the underlying C library. Installation: The...
337.92 KB  
Libraries  -  libglade-java 2.12.8
Java-GNOME is a set of Java bindings for GNOME and GTK libraries, so GNOME applications can be written in Java. Java-GNOME is implemented as a JNI layer that delegates the Java calls out to the underlying C library. Installation: The...
358.4 KB  
Libraries  -  libgnome-java 2.12.7
Java-GNOME is a set of Java bindings for GNOME and GTK libraries, so GNOME applications can be written in Java. Java-GNOME is implemented as a JNI layer that delegates the Java calls out to the underlying C library. Installation: The...
481.28 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB