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 49.481.303 Times

Danga::Socket 1.56

  Date Added: November 01, 2010  |  Visits: 1.008

Danga::Socket

Report Broken Link
Printer Friendly Version


Product Homepage
Download (91 downloads)



Danga::Socket is an event loop and event-driven async socket base class. SYNOPSIS package My::Socket use Danga::Socket; use base (Danga::Socket); use fields (my_attribute); sub new { my My::Socket $self = shift; $self = fields::new($self) unless ref $self; $self->SUPER::new( @_ ); $self->{my_attribute} = 1234; return $self; } sub event_err { ... } sub event_hup { ... } sub event_write { ... } sub event_read { ... } sub close { ... } $my_sock->tcp_cork($bool); # write returns 1 if all writes have gone through, or 0 if there # are writes in queue $my_sock->write($scalar); $my_sock->write($scalarref); $my_sock->write(sub { ... }); # run when previous data written $my_sock->write(undef); # kick-starts # read max $bytecount bytes, or undef on connection closed $scalar_ref = $my_sock->read($bytecount); # watch for writability. not needed with ->write(). write() # will automatically turn on watch_write when you wrote too much # and turn it off when done $my_sock->watch_write($bool); # watch for readability $my_sock->watch_read($bool); # if you read too much and want to push some back on # readable queue. (not incredibly well-tested) $my_sock->push_back_read($buf); # scalar or scalar ref Danga::Socket->AddOtherFds(..); Danga::Socket->SetLoopTimeout($millisecs); Danga::Socket->DescriptorMap(); Danga::Socket->WatchedSockets(); # count of DescriptorMap keys Danga::Socket->SetPostLoopCallback($code); Danga::Socket->EventLoop(); This is an abstract base class for objects backed by a socket which provides the basic framework for event-driven asynchronous IO, designed to be fast. Danga::Socket is both a base class for objects, and an event loop. Callers subclass Danga::Socket. Danga::Sockets constructor registers itself with the Danga::Socket event loop, and invokes callbacks on the object for readability, writability, errors, and other conditions. Because Danga::Socket uses the "fields" module, your subclasses must too..

Requirements: No special requirements
Platforms: Linux
Keyword: Base Dangasocket Event Event Loop Libraries Loop Programming Read Sub Write
Users rating: 0/10

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


DANGA::SOCKET RELATED
Development Tools  -  Liboop 1.0
Liboop is a low-level event loop management library for POSIX-based operating systems. It supports the development of modular, multiplexed applications which may respond to events from several sources.It replaces the "select() loop" and allows the...
 
Networking  -  Qt Twisted (threadedselectreactor) 1.0
This script integrates Qt using the threadedselectreactor. An alternative to qtreactor, this script allows dispatching messages over the perspective broker while running the Qt event loop. It basically shows how to use...
 
Miscellaneous  -  Integrating Twisted reactor with IPython 1.0
This script allows you to run the Twisted reactor event loop in a thread alongside an IPython shell, for introspecting a running Twisted process.
 
Libraries  -  HGL 3.00
HGL project gives the programmer access to the most interesting parts of the Win32 and X11 library without exposing the programmer to the pain and anguish usually associated with using these interfaces. The library is distributed as open source...
419.84 KB  
Modules  -  Mapdir 6.x-2.x-de
Mapdir is a small utility module that provides a very flexible and general functional programming (read: easy) mechanism for applying functions to all (or selected) files and subdirectories in a directory.Sample applications include data import,...
10 KB  
Libraries  -  Event::RPC 0.90
Event::RPC is a event based transparent Client/Server RPC framework. SYNOPSIS #-- Server Code use Event::RPC::Server; use My::TestModule; my $server = Event::RPC::Server->new ( port => 5555, classes => { "My::TestModule" => { ... } }, );...
31.74 KB  
Libraries  -  Gtk2::Ex::MindMapView::HotSpot 0.000001
Gtk2::Ex::MindMapView::HotSpot is a base class for grips and toggles. SYNOPSIS use base Gtk2::Ex::MindMapView::HotSpot; This module is internal to Gtk2::Ex::MindMapView. Four Gtk2::Ex::MindMapView::HotSpots are created for each...
50.18 KB  
Libraries  -  Linux::Joystick 0.0.1
Linux::Joystick is an object-oriented, pure Perl API for accessing joystick devices under Linux-based operating systems. Linux::Joystick module is capable of using either blocking or non-blocking I/O, and represents each axis change or button...
22.53 KB  
Libraries  -  MetaRuby 0.7
MetaRuby contains miscellaneous libraries (useful now) for a future Ruby-in-Ruby interpreter including Array/Hash/String as abstract ("Hollow") classes, an undo queue, a statistical time-profiler. It also has an event loop, a modular marshaller...
52.22 KB  
Libraries  -  Peers 0.20050929
Peers is a distributed programming toolkit designed for building peer-to-peer systems. The toolkit is a hybrid language project which offers low level primitives for managing concurrency and communication. Using these primitives, complex P2P...
215.04 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