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

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

Serving Software Downloads in 976 Categories, Downloaded 30.072.185 Times

Danga::Socket 1.56

  Date Added: November 01, 2010  |  Visits: 792

Danga::Socket

Report Broken Link
Printer Friendly Version


Product Homepage
Download (75 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
DANGA::SOCKET RELATED
Business  -  Event Space Calculator 1.0.0
How many people can you fit into a 5,000 square foot meeting - or a 15,000 square foot banquet hall? How big of a room do you need if you're going to have 150 people attend your event? Event Space Calculator to the rescue! The Event...
307.2 KB  
Games  -  EpicElves 1.0
Welcome to EpicLand. The children of EpicLand are a little worried as there has been a news report that Santa has dropped his presents whilst trying to do a loop the loop in his sleigh! Help Eric and the rest of the Elves find the presents...
3.4 MB  
Audio Editors  -  samplisizer 1.0
Samplisizer allows you to create electronic club music with simple "drag and drop" operations. The program offers more than 3,500 customizable loops. SZ combines a groove box and a sequencer in a single editor, and no musical experience is...
10.74 MB  
Business  -  Cellica Database Anywhere for iPhone 4.1.2
Read and write to your desktop databases without any programming changes. Quickest and easiest way to go paperless. Synchronize data using Internet on device(3G/4G/Wi-Fi). See Cellica Database in action at: http://tinyurl.com/CellicaDB...
18.8 MB  
Utilities  -  Cellica Database for iPad (Database Viewer Plus) 6.6.4
Read and write to your desktop databases without any programming changes. Quickest and easiest way to go paperless. Cellica Database for iPad allows to synchronize any desktop database (Available on Windows) wirelessly (Using internet...
11.8 MB  
Utilities  -  Cellica Database for iPhone (Database Viewer Plus) 6.6.4
Read and write to your desktop databases without any programming changes. Quickest and easiest way to go paperless. Cellica Database for iPhone allows to synchronize any desktop database (Available on Windows) wirelessly (Using internet...
8.4 MB  
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  
Productivity  -  ZotPad 1.2.15
ZotPad is an iPad/iPhone client for Zotero reference management software. The purpose of ZotPad is to allow accessing Zotero libraries from mobile devices. The software provides read and write access to Zotero files stored on the Zotero server,...
52.6 MB  
Libraries  -  XML::Essex::Event 0.01
XML::Essex::Event is a base event class, also used for unknown event types. Stringifies as $event->type . "()" to indicate an event that has no natural way to represented in XML, or for ones that havent been handled yet in Essex. Methods new...
43.01 KB  
Libraries  -  Surumi 0.0.1
Surumi project is a modular event-driven programming framework. It offers a generic and uniform interface. You certainly heard of event-driven programming, but in any window system, those events are usually bound on ``window objects and very...
245.76 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.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...
2.73 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