libband

Description

LibBand is a simple library wrapper written in assembly and C (but I plan to rewrite everything in C) useful if you want to limit the bandwidth used by a program. It simply overrides some libc functions, using the LD_PRELOAD environment variable, and puts some pauses in the program to clamp the bandwidth at the specified value, for both upload and download operations. You just have to set UPLOAD_BAND and DOWNLOAD_BAND and run your program, for example: export LD_PRELOAD=/replace-with-the-path/to/libband.so export UPLOAD_BAND=1024 export DOWNLOAD_BAND=8192 ftp somewhere.com The bandwidth must be expressed in bytes/s, and so in the above example, we want the upload band clamped at 1.0 kb/s, the download band at 8.0 kb/s. Theres a small utility in the scripts/ directory, called lb: you can use it to set everything and start your program from a nice whiptail/dialog environment. You need NASM to build the binary (but dont worry, a pre-assembled version is included in the package). Just type "make" to compile, and "make install" to install the library. Remember that $HOME/lib is the default installation directory, so you usually have to export LD_PRELOAD by using: export LD_PRELOAD=$HOME/lib/libband.so The "lb" script is configured to work with this path, but you may change it by editing the script itself (search for the LIBPATH variable). Please note that at the moment libBand DOESNT WORK with multithreaded and _graphic_ applications. Whats New in This Release: · We keep track of sockets by wrapping socket(), accept() and close(). The old fstat() mechanism has been obsoleted..

Preload - Ld - Libband - You Want To - Want To - Used By - Bandwidth Used - Bandwidth - Export - Library - Used - Useful - Wrapper - Libraries - Programming

Published By:Andrea

License Type:Freeware

Date Added:22 October, 2010

Version:0.01

Price:Free

Downloads:39

Size:22.5 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

zengarden is a tool that watches over the installation and building of source archives. It is a fork of installwatch that has been heavily updated with modern features.

DateAug 22, 2010

AuthorDem

Size276.5 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities

fixsrcip is a tool for binding outgoing TCP and UDP client sockets (IPv4) to specific source IP addresses on multi-homed hosts. It requires a current Linux system. fixsrcip tool uses LD_PRELOAD for preloading a small shared object to executables.

DateAug 21, 2010

AuthorLennart Poettering

Size11.3 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Internet

libetc is an LD_PRELOAD-able shared library designed for maintaining a home directory without dot-files.

DateOct 3, 2010

AuthorLuc Dufresne

Size13.3 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Alternate Password Library (libaltpw) adds alternate password support dynamically with LD_PRELOAD or by linking the shared library with the executable.

DateAug 27, 2010

AuthorSteve Slaven

Size102.4 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Failmalloc generates a shared library which can be loaded by LD_PRELOAD or linked at compilation time.

DateSep 23, 2010

AuthorYoshinori K. Okuji

Size297.0 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming