Visit Our UNIX and Linux User Community


libevent http 1.4


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users libevent http 1.4
# 1  
Old 11-18-2010
libevent http 1.4

HI , guys . I'm programming in c . I want to know how to use libevent l.4 ,especially the use of http . can anybody give me a tutorial or URL?

I just find this one , but it's about 2.0

Fast portable non-blocking network programming with Libevent

you help will be very appreciated !

Last edited by aobai; 11-18-2010 at 05:21 AM.. Reason: add more content

Previous Thread | Next Thread
Test Your Knowledge in Computers #628
Difficulty: Easy
In PHP, True !== 1;
True or False?

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk script to find time difference between HTTP PUT and HTTP DELETE requests in access.log

Hi, I'm trying to write a script to determine the time gap between HTTP PUT and HTTP DELETE requests in the HTTP Servers access log. Normally client will do HTTP PUT to push content e.g. file_1.txt and 21 seconds later it will do HTTP DELETE, but sometimes the time varies causing some issues... (3 Replies)
Discussion started by: Juha
3 Replies

2. Web Development

HTTP Headers Reference: HTTP Status-Codes

Hypertext Transfer Protocol -- HTTP/1.1 for Reference - HTTP Headers 10 Status Code Definitions Each Status-Code is described below, including a description of which method(s) it can follow and any metainformation required in the response. (1 Reply)
Discussion started by: Neo
1 Replies

3. Shell Programming and Scripting

sending http url through http socket programming..

hi am senthil am developing a software to send and receive SMS using HTTP connection first of all am forming a URL and sending that URL to a remote server using my Client Program i send that url through Socket(using Send() Function) if i send more than one URL one by one using the same... (4 Replies)
Discussion started by: senkerth
4 Replies

4. Programming

sending http url through http socket programming..

hi am senthil am developing a software to send and receive SMS using HTTP connection first of all am forming a URL and sending that URL to a remote server using my Client Program i send that url through Socket(using Send() Function) if i send more than one URL one by one using the same... (0 Replies)
Discussion started by: senkerth
0 Replies

5. Linux

Dynamic HTTP

hi guys, please i would like to know how to cache dynamic websites, on squid 3.1 thanks (1 Reply)
Discussion started by: zazoo
1 Replies

6. UNIX for Advanced & Expert Users

http

how to downloaad a web page using http server (0 Replies)
Discussion started by: krishnavel
0 Replies
EV::MakeMaker(3pm)					User Contributed Perl Documentation					EV::MakeMaker(3pm)

NAME
EV::MakeMaker - MakeMaker glue for the C-level EV API SYNOPSIS
This allows you to access some libevent functionality from other perl modules. DESCRIPTION
For optimal performance, hook into EV at the C-level. You'll need to make changes to your "Makefile.PL" and add code to your "xs" / "c" file(s). HOW TO
Makefile.PL use EV::MakeMaker qw(ev_args); # ... set up %args ... WriteMakefile (ev_args (%args)); XS #include "EVAPI.h" BOOT: I_EV_API ("YourModule"); API
See the EVAPI.h <http://cvs.schmorp.de/EV/EV/EVAPI.h> header, which you should include instead of ev.h. In short, all the functions and macros from ev.h should work, except that the trailing underscore macros ("EV_A_", "EV_DEFAULT_") are not available (except "EV_P_" :). Multiplicity is enabled. The "data" member in each watcher is of type "SV *" and not "void *" (this might change at some point). EXAMPLE
The EV::Glib, EV::ADNS and Glib::EV modules all give nice examples on how to use this module. Here are some .xs fragments taken from EV::ADNS that should get you going: #include "EVAPI.h" static ev_prepare pw; static ev_idle iw; static void idle_cb (EV_P_ ev_idle *w, int revents) { ev_idle_stop (EV_A, w); } MODULE = ... BOOT: { I_EV_API ("EV::ADNS"); ev_prepare_init (&pw, prepare_cb); ev_init (&iw, idle_cb); ev_set_priority (&iw, EV_MINPRI); ev_idle_start (EV_DEFAULT, &iw); } perl v5.14.2 2008-04-07 EV::MakeMaker(3pm)

Featured Tech Videos