evdispatch 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. data/History.txt +3 -0
  2. data/License.txt +20 -0
  3. data/Manifest.txt +96 -0
  4. data/README.txt +73 -0
  5. data/Rakefile +4 -0
  6. data/config/hoe.rb +70 -0
  7. data/config/requirements.rb +15 -0
  8. data/ext/revdispatch/extconf.rb +31 -0
  9. data/ext/revdispatch/libevdispatch/Changelog +0 -0
  10. data/ext/revdispatch/libevdispatch/LICENSE +0 -0
  11. data/ext/revdispatch/libevdispatch/Makefile.am +10 -0
  12. data/ext/revdispatch/libevdispatch/Makefile.in +637 -0
  13. data/ext/revdispatch/libevdispatch/README +3 -0
  14. data/ext/revdispatch/libevdispatch/TODO +5 -0
  15. data/ext/revdispatch/libevdispatch/aclocal.m4 +7459 -0
  16. data/ext/revdispatch/libevdispatch/autogen.sh +11 -0
  17. data/ext/revdispatch/libevdispatch/confdefs.h +32 -0
  18. data/ext/revdispatch/libevdispatch/config.guess +1516 -0
  19. data/ext/revdispatch/libevdispatch/config.h.in +112 -0
  20. data/ext/revdispatch/libevdispatch/config.sub +1626 -0
  21. data/ext/revdispatch/libevdispatch/configure +21949 -0
  22. data/ext/revdispatch/libevdispatch/configure.ac +40 -0
  23. data/ext/revdispatch/libevdispatch/depcomp +584 -0
  24. data/ext/revdispatch/libevdispatch/install-sh +507 -0
  25. data/ext/revdispatch/libevdispatch/libev/Changes +54 -0
  26. data/ext/revdispatch/libevdispatch/libev/LICENSE +25 -0
  27. data/ext/revdispatch/libevdispatch/libev/Makefile.am +18 -0
  28. data/ext/revdispatch/libevdispatch/libev/Makefile.in +677 -0
  29. data/ext/revdispatch/libevdispatch/libev/README +130 -0
  30. data/ext/revdispatch/libevdispatch/libev/aclocal.m4 +7430 -0
  31. data/ext/revdispatch/libevdispatch/libev/autogen.sh +7 -0
  32. data/ext/revdispatch/libevdispatch/libev/config.guess +1516 -0
  33. data/ext/revdispatch/libevdispatch/libev/config.h.in +106 -0
  34. data/ext/revdispatch/libevdispatch/libev/config.sub +1626 -0
  35. data/ext/revdispatch/libevdispatch/libev/configure +21636 -0
  36. data/ext/revdispatch/libevdispatch/libev/configure.ac +18 -0
  37. data/ext/revdispatch/libevdispatch/libev/ev++.h +779 -0
  38. data/ext/revdispatch/libevdispatch/libev/ev.3 +3276 -0
  39. data/ext/revdispatch/libevdispatch/libev/ev.c +2547 -0
  40. data/ext/revdispatch/libevdispatch/libev/ev.h +608 -0
  41. data/ext/revdispatch/libevdispatch/libev/ev.pod +3192 -0
  42. data/ext/revdispatch/libevdispatch/libev/ev_epoll.c +182 -0
  43. data/ext/revdispatch/libevdispatch/libev/ev_kqueue.c +194 -0
  44. data/ext/revdispatch/libevdispatch/libev/ev_poll.c +135 -0
  45. data/ext/revdispatch/libevdispatch/libev/ev_port.c +163 -0
  46. data/ext/revdispatch/libevdispatch/libev/ev_select.c +244 -0
  47. data/ext/revdispatch/libevdispatch/libev/ev_vars.h +157 -0
  48. data/ext/revdispatch/libevdispatch/libev/ev_win32.c +125 -0
  49. data/ext/revdispatch/libevdispatch/libev/ev_wrap.h +144 -0
  50. data/ext/revdispatch/libevdispatch/libev/event.c +404 -0
  51. data/ext/revdispatch/libevdispatch/libev/event.h +152 -0
  52. data/ext/revdispatch/libevdispatch/libev/install-sh +294 -0
  53. data/ext/revdispatch/libevdispatch/libev/libev.m4 +28 -0
  54. data/ext/revdispatch/libevdispatch/libev/ltmain.sh +6930 -0
  55. data/ext/revdispatch/libevdispatch/libev/missing +336 -0
  56. data/ext/revdispatch/libevdispatch/libev/mkinstalldirs +111 -0
  57. data/ext/revdispatch/libevdispatch/ltmain.sh +6930 -0
  58. data/ext/revdispatch/libevdispatch/missing +367 -0
  59. data/ext/revdispatch/libevdispatch/src/Makefile.am +11 -0
  60. data/ext/revdispatch/libevdispatch/src/Makefile.in +486 -0
  61. data/ext/revdispatch/libevdispatch/src/ev_dispatch.cc +264 -0
  62. data/ext/revdispatch/libevdispatch/src/ev_dispatch.h +300 -0
  63. data/ext/revdispatch/libevdispatch/src/ev_http.cc +238 -0
  64. data/ext/revdispatch/libevdispatch/src/ev_http.h +65 -0
  65. data/ext/revdispatch/libevdispatch/test/Makefile.am +16 -0
  66. data/ext/revdispatch/libevdispatch/test/Makefile.in +513 -0
  67. data/ext/revdispatch/libevdispatch/test/helper.rb +94 -0
  68. data/ext/revdispatch/libevdispatch/test/key_test.cc +52 -0
  69. data/ext/revdispatch/libevdispatch/test/next_test.cc +86 -0
  70. data/ext/revdispatch/libevdispatch/test/next_test.rb +8 -0
  71. data/ext/revdispatch/libevdispatch/test/server.rb +9 -0
  72. data/ext/revdispatch/revdispatch.cc +151 -0
  73. data/ext/revdispatch/server.rb +60 -0
  74. data/ext/revdispatch/test.rb +100 -0
  75. data/lib/evdispatch/loop.rb +16 -0
  76. data/lib/evdispatch/version.rb +9 -0
  77. data/lib/evdispatch.rb +8 -0
  78. data/log/debug.log +0 -0
  79. data/script/console +10 -0
  80. data/script/destroy +14 -0
  81. data/script/generate +14 -0
  82. data/script/txt2html +74 -0
  83. data/setup.rb +1585 -0
  84. data/tasks/deployment.rake +34 -0
  85. data/tasks/environment.rake +7 -0
  86. data/tasks/extconf/revdispatch.rake +43 -0
  87. data/tasks/extconf.rake +13 -0
  88. data/tasks/website.rake +17 -0
  89. data/test/test_evdispatch.rb +11 -0
  90. data/test/test_helper.rb +3 -0
  91. data/test/test_revdispatch_extn.rb +14 -0
  92. data/website/index.html +128 -0
  93. data/website/index.txt +55 -0
  94. data/website/javascripts/rounded_corners_lite.inc.js +285 -0
  95. data/website/stylesheets/screen.css +138 -0
  96. data/website/template.html.erb +49 -0
  97. metadata +157 -0
@@ -0,0 +1,513 @@
1
+ # Makefile.in generated by automake 1.10 from Makefile.am.
2
+ # @configure_input@
3
+
4
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
+ # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6
+ # This Makefile.in is free software; the Free Software Foundation
7
+ # gives unlimited permission to copy and/or distribute it,
8
+ # with or without modifications, as long as this notice is preserved.
9
+
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13
+ # PARTICULAR PURPOSE.
14
+
15
+ @SET_MAKE@
16
+
17
+ VPATH = @srcdir@
18
+ pkgdatadir = $(datadir)/@PACKAGE@
19
+ pkglibdir = $(libdir)/@PACKAGE@
20
+ pkgincludedir = $(includedir)/@PACKAGE@
21
+ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22
+ install_sh_DATA = $(install_sh) -c -m 644
23
+ install_sh_PROGRAM = $(install_sh) -c
24
+ install_sh_SCRIPT = $(install_sh) -c
25
+ INSTALL_HEADER = $(INSTALL_DATA)
26
+ transform = $(program_transform_name)
27
+ NORMAL_INSTALL = :
28
+ PRE_INSTALL = :
29
+ POST_INSTALL = :
30
+ NORMAL_UNINSTALL = :
31
+ PRE_UNINSTALL = :
32
+ POST_UNINSTALL = :
33
+ build_triplet = @build@
34
+ host_triplet = @host@
35
+ bin_PROGRAMS = next_test$(EXEEXT) key_test$(EXEEXT)
36
+ subdir = test
37
+ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39
+ am__aclocal_m4_deps = $(top_srcdir)/libev/libev.m4 \
40
+ $(top_srcdir)/configure.ac
41
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42
+ $(ACLOCAL_M4)
43
+ mkinstalldirs = $(install_sh) -d
44
+ CONFIG_HEADER = $(top_builddir)/config.h
45
+ CONFIG_CLEAN_FILES =
46
+ am__installdirs = "$(DESTDIR)$(bindir)"
47
+ binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
48
+ PROGRAMS = $(bin_PROGRAMS)
49
+ am_key_test_OBJECTS = key_test-key_test.$(OBJEXT)
50
+ key_test_OBJECTS = $(am_key_test_OBJECTS)
51
+ key_test_DEPENDENCIES =
52
+ key_test_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
53
+ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
54
+ $(CXXFLAGS) $(key_test_LDFLAGS) $(LDFLAGS) -o $@
55
+ am_next_test_OBJECTS = next_test-next_test.$(OBJEXT)
56
+ next_test_OBJECTS = $(am_next_test_OBJECTS)
57
+ next_test_DEPENDENCIES =
58
+ next_test_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
59
+ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
60
+ $(CXXFLAGS) $(next_test_LDFLAGS) $(LDFLAGS) -o $@
61
+ DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
62
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
63
+ am__depfiles_maybe = depfiles
64
+ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
65
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
66
+ LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67
+ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
69
+ CXXLD = $(CXX)
70
+ CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71
+ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
72
+ $(LDFLAGS) -o $@
73
+ SOURCES = $(key_test_SOURCES) $(next_test_SOURCES)
74
+ DIST_SOURCES = $(key_test_SOURCES) $(next_test_SOURCES)
75
+ ETAGS = etags
76
+ CTAGS = ctags
77
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78
+ ACLOCAL = @ACLOCAL@
79
+ AMTAR = @AMTAR@
80
+ AR = @AR@
81
+ AUTOCONF = @AUTOCONF@
82
+ AUTOHEADER = @AUTOHEADER@
83
+ AUTOMAKE = @AUTOMAKE@
84
+ AWK = @AWK@
85
+ CC = @CC@
86
+ CCDEPMODE = @CCDEPMODE@
87
+ CFLAGS = @CFLAGS@
88
+ CPP = @CPP@
89
+ CPPFLAGS = @CPPFLAGS@
90
+ CXX = @CXX@
91
+ CXXCPP = @CXXCPP@
92
+ CXXDEPMODE = @CXXDEPMODE@
93
+ CXXFLAGS = @CXXFLAGS@
94
+ CYGPATH_W = @CYGPATH_W@
95
+ DEFS = @DEFS@
96
+ DEPDIR = @DEPDIR@
97
+ ECHO = @ECHO@
98
+ ECHO_C = @ECHO_C@
99
+ ECHO_N = @ECHO_N@
100
+ ECHO_T = @ECHO_T@
101
+ EGREP = @EGREP@
102
+ EXEEXT = @EXEEXT@
103
+ F77 = @F77@
104
+ FFLAGS = @FFLAGS@
105
+ GREP = @GREP@
106
+ INSTALL = @INSTALL@
107
+ INSTALL_DATA = @INSTALL_DATA@
108
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
109
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
110
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
111
+ LDFLAGS = @LDFLAGS@
112
+ LIBEV_PATH = @LIBEV_PATH@
113
+ LIBOBJS = @LIBOBJS@
114
+ LIBS = @LIBS@
115
+ LIBTOOL = @LIBTOOL@
116
+ LN_S = @LN_S@
117
+ LTLIBOBJS = @LTLIBOBJS@
118
+ MAINT = @MAINT@
119
+ MAKEINFO = @MAKEINFO@
120
+ MKDIR_P = @MKDIR_P@
121
+ OBJEXT = @OBJEXT@
122
+ PACKAGE = @PACKAGE@
123
+ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
124
+ PACKAGE_NAME = @PACKAGE_NAME@
125
+ PACKAGE_STRING = @PACKAGE_STRING@
126
+ PACKAGE_TARNAME = @PACKAGE_TARNAME@
127
+ PACKAGE_VERSION = @PACKAGE_VERSION@
128
+ PATH_SEPARATOR = @PATH_SEPARATOR@
129
+ RANLIB = @RANLIB@
130
+ SED = @SED@
131
+ SET_MAKE = @SET_MAKE@
132
+ SHELL = @SHELL@
133
+ STRIP = @STRIP@
134
+ VERSION = @VERSION@
135
+ abs_builddir = @abs_builddir@
136
+ abs_srcdir = @abs_srcdir@
137
+ abs_top_builddir = @abs_top_builddir@
138
+ abs_top_srcdir = @abs_top_srcdir@
139
+ ac_ct_CC = @ac_ct_CC@
140
+ ac_ct_CXX = @ac_ct_CXX@
141
+ ac_ct_F77 = @ac_ct_F77@
142
+ am__include = @am__include@
143
+ am__leading_dot = @am__leading_dot@
144
+ am__quote = @am__quote@
145
+ am__tar = @am__tar@
146
+ am__untar = @am__untar@
147
+ bindir = @bindir@
148
+ build = @build@
149
+ build_alias = @build_alias@
150
+ build_cpu = @build_cpu@
151
+ build_os = @build_os@
152
+ build_vendor = @build_vendor@
153
+ builddir = @builddir@
154
+ datadir = @datadir@
155
+ datarootdir = @datarootdir@
156
+ docdir = @docdir@
157
+ dvidir = @dvidir@
158
+ exec_prefix = @exec_prefix@
159
+ host = @host@
160
+ host_alias = @host_alias@
161
+ host_cpu = @host_cpu@
162
+ host_os = @host_os@
163
+ host_vendor = @host_vendor@
164
+ htmldir = @htmldir@
165
+ includedir = @includedir@
166
+ infodir = @infodir@
167
+ install_sh = @install_sh@
168
+ libdir = @libdir@
169
+ libexecdir = @libexecdir@
170
+ localedir = @localedir@
171
+ localstatedir = @localstatedir@
172
+ mandir = @mandir@
173
+ mkdir_p = @mkdir_p@
174
+ oldincludedir = @oldincludedir@
175
+ pdfdir = @pdfdir@
176
+ prefix = @prefix@
177
+ program_transform_name = @program_transform_name@
178
+ psdir = @psdir@
179
+ sbindir = @sbindir@
180
+ sharedstatedir = @sharedstatedir@
181
+ srcdir = @srcdir@
182
+ sysconfdir = @sysconfdir@
183
+ target_alias = @target_alias@
184
+ top_builddir = @top_builddir@
185
+ top_srcdir = @top_srcdir@
186
+ next_test_SOURCES = next_test.cc
187
+ next_test_CPPFLAGS = -I$(top_srcdir)/src/ -I$(LIBEV_PATH)
188
+ next_test_LDADD = -ldispatch -lev
189
+ next_test_LDFLAGS = -L$(top_srcdir)/src/.libs/ `curl-config --libs` -L$(LIBEV_PATH)/.libs/
190
+ key_test_SOURCES = key_test.cc
191
+ key_test_CPPFLAGS = -I$(top_srcdir)/src/ -I$(LIBEV_PATH)
192
+ key_test_LDADD = -ldispatch -lev
193
+ key_test_LDFLAGS = -L$(top_srcdir)/src/.libs/ `curl-config --libs` -L$(LIBEV_PATH)/.libs/
194
+ all: all-am
195
+
196
+ .SUFFIXES:
197
+ .SUFFIXES: .cc .lo .o .obj
198
+ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
199
+ @for dep in $?; do \
200
+ case '$(am__configure_deps)' in \
201
+ *$$dep*) \
202
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
203
+ && exit 0; \
204
+ exit 1;; \
205
+ esac; \
206
+ done; \
207
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \
208
+ cd $(top_srcdir) && \
209
+ $(AUTOMAKE) --gnu test/Makefile
210
+ .PRECIOUS: Makefile
211
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
212
+ @case '$?' in \
213
+ *config.status*) \
214
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
215
+ *) \
216
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
217
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
218
+ esac;
219
+
220
+ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
221
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
222
+
223
+ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
224
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
225
+ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
226
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
227
+ install-binPROGRAMS: $(bin_PROGRAMS)
228
+ @$(NORMAL_INSTALL)
229
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
230
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
231
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
232
+ if test -f $$p \
233
+ || test -f $$p1 \
234
+ ; then \
235
+ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
236
+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
237
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
238
+ else :; fi; \
239
+ done
240
+
241
+ uninstall-binPROGRAMS:
242
+ @$(NORMAL_UNINSTALL)
243
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
244
+ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
245
+ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
246
+ rm -f "$(DESTDIR)$(bindir)/$$f"; \
247
+ done
248
+
249
+ clean-binPROGRAMS:
250
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
251
+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
252
+ echo " rm -f $$p $$f"; \
253
+ rm -f $$p $$f ; \
254
+ done
255
+ key_test$(EXEEXT): $(key_test_OBJECTS) $(key_test_DEPENDENCIES)
256
+ @rm -f key_test$(EXEEXT)
257
+ $(key_test_LINK) $(key_test_OBJECTS) $(key_test_LDADD) $(LIBS)
258
+ next_test$(EXEEXT): $(next_test_OBJECTS) $(next_test_DEPENDENCIES)
259
+ @rm -f next_test$(EXEEXT)
260
+ $(next_test_LINK) $(next_test_OBJECTS) $(next_test_LDADD) $(LIBS)
261
+
262
+ mostlyclean-compile:
263
+ -rm -f *.$(OBJEXT)
264
+
265
+ distclean-compile:
266
+ -rm -f *.tab.c
267
+
268
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/key_test-key_test.Po@am__quote@
269
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/next_test-next_test.Po@am__quote@
270
+
271
+ .cc.o:
272
+ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
273
+ @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
274
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
275
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
276
+ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
277
+
278
+ .cc.obj:
279
+ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
280
+ @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
281
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
282
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
283
+ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
284
+
285
+ .cc.lo:
286
+ @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
287
+ @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
288
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
289
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
290
+ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
291
+
292
+ key_test-key_test.o: key_test.cc
293
+ @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(key_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT key_test-key_test.o -MD -MP -MF $(DEPDIR)/key_test-key_test.Tpo -c -o key_test-key_test.o `test -f 'key_test.cc' || echo '$(srcdir)/'`key_test.cc
294
+ @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/key_test-key_test.Tpo $(DEPDIR)/key_test-key_test.Po
295
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='key_test.cc' object='key_test-key_test.o' libtool=no @AMDEPBACKSLASH@
296
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
297
+ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(key_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o key_test-key_test.o `test -f 'key_test.cc' || echo '$(srcdir)/'`key_test.cc
298
+
299
+ key_test-key_test.obj: key_test.cc
300
+ @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(key_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT key_test-key_test.obj -MD -MP -MF $(DEPDIR)/key_test-key_test.Tpo -c -o key_test-key_test.obj `if test -f 'key_test.cc'; then $(CYGPATH_W) 'key_test.cc'; else $(CYGPATH_W) '$(srcdir)/key_test.cc'; fi`
301
+ @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/key_test-key_test.Tpo $(DEPDIR)/key_test-key_test.Po
302
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='key_test.cc' object='key_test-key_test.obj' libtool=no @AMDEPBACKSLASH@
303
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
304
+ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(key_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o key_test-key_test.obj `if test -f 'key_test.cc'; then $(CYGPATH_W) 'key_test.cc'; else $(CYGPATH_W) '$(srcdir)/key_test.cc'; fi`
305
+
306
+ next_test-next_test.o: next_test.cc
307
+ @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(next_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT next_test-next_test.o -MD -MP -MF $(DEPDIR)/next_test-next_test.Tpo -c -o next_test-next_test.o `test -f 'next_test.cc' || echo '$(srcdir)/'`next_test.cc
308
+ @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/next_test-next_test.Tpo $(DEPDIR)/next_test-next_test.Po
309
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='next_test.cc' object='next_test-next_test.o' libtool=no @AMDEPBACKSLASH@
310
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
311
+ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(next_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o next_test-next_test.o `test -f 'next_test.cc' || echo '$(srcdir)/'`next_test.cc
312
+
313
+ next_test-next_test.obj: next_test.cc
314
+ @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(next_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT next_test-next_test.obj -MD -MP -MF $(DEPDIR)/next_test-next_test.Tpo -c -o next_test-next_test.obj `if test -f 'next_test.cc'; then $(CYGPATH_W) 'next_test.cc'; else $(CYGPATH_W) '$(srcdir)/next_test.cc'; fi`
315
+ @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/next_test-next_test.Tpo $(DEPDIR)/next_test-next_test.Po
316
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='next_test.cc' object='next_test-next_test.obj' libtool=no @AMDEPBACKSLASH@
317
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318
+ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(next_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o next_test-next_test.obj `if test -f 'next_test.cc'; then $(CYGPATH_W) 'next_test.cc'; else $(CYGPATH_W) '$(srcdir)/next_test.cc'; fi`
319
+
320
+ mostlyclean-libtool:
321
+ -rm -f *.lo
322
+
323
+ clean-libtool:
324
+ -rm -rf .libs _libs
325
+
326
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
327
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
328
+ unique=`for i in $$list; do \
329
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
330
+ done | \
331
+ $(AWK) ' { files[$$0] = 1; } \
332
+ END { for (i in files) print i; }'`; \
333
+ mkid -fID $$unique
334
+ tags: TAGS
335
+
336
+ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
337
+ $(TAGS_FILES) $(LISP)
338
+ tags=; \
339
+ here=`pwd`; \
340
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
341
+ unique=`for i in $$list; do \
342
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
343
+ done | \
344
+ $(AWK) ' { files[$$0] = 1; } \
345
+ END { for (i in files) print i; }'`; \
346
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
347
+ test -n "$$unique" || unique=$$empty_fix; \
348
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
349
+ $$tags $$unique; \
350
+ fi
351
+ ctags: CTAGS
352
+ CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353
+ $(TAGS_FILES) $(LISP)
354
+ tags=; \
355
+ here=`pwd`; \
356
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357
+ unique=`for i in $$list; do \
358
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359
+ done | \
360
+ $(AWK) ' { files[$$0] = 1; } \
361
+ END { for (i in files) print i; }'`; \
362
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
363
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
364
+ $$tags $$unique
365
+
366
+ GTAGS:
367
+ here=`$(am__cd) $(top_builddir) && pwd` \
368
+ && cd $(top_srcdir) \
369
+ && gtags -i $(GTAGS_ARGS) $$here
370
+
371
+ distclean-tags:
372
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
373
+
374
+ distdir: $(DISTFILES)
375
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
376
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377
+ list='$(DISTFILES)'; \
378
+ dist_files=`for file in $$list; do echo $$file; done | \
379
+ sed -e "s|^$$srcdirstrip/||;t" \
380
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
381
+ case $$dist_files in \
382
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
383
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
384
+ sort -u` ;; \
385
+ esac; \
386
+ for file in $$dist_files; do \
387
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
388
+ if test -d $$d/$$file; then \
389
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
390
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
391
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
392
+ fi; \
393
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
394
+ else \
395
+ test -f $(distdir)/$$file \
396
+ || cp -p $$d/$$file $(distdir)/$$file \
397
+ || exit 1; \
398
+ fi; \
399
+ done
400
+ check-am: all-am
401
+ check: check-am
402
+ all-am: Makefile $(PROGRAMS)
403
+ installdirs:
404
+ for dir in "$(DESTDIR)$(bindir)"; do \
405
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
406
+ done
407
+ install: install-am
408
+ install-exec: install-exec-am
409
+ install-data: install-data-am
410
+ uninstall: uninstall-am
411
+
412
+ install-am: all-am
413
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
414
+
415
+ installcheck: installcheck-am
416
+ install-strip:
417
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
418
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
419
+ `test -z '$(STRIP)' || \
420
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
421
+ mostlyclean-generic:
422
+
423
+ clean-generic:
424
+
425
+ distclean-generic:
426
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
427
+
428
+ maintainer-clean-generic:
429
+ @echo "This command is intended for maintainers to use"
430
+ @echo "it deletes files that may require special tools to rebuild."
431
+ clean: clean-am
432
+
433
+ clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
434
+
435
+ distclean: distclean-am
436
+ -rm -rf ./$(DEPDIR)
437
+ -rm -f Makefile
438
+ distclean-am: clean-am distclean-compile distclean-generic \
439
+ distclean-tags
440
+
441
+ dvi: dvi-am
442
+
443
+ dvi-am:
444
+
445
+ html: html-am
446
+
447
+ info: info-am
448
+
449
+ info-am:
450
+
451
+ install-data-am:
452
+
453
+ install-dvi: install-dvi-am
454
+
455
+ install-exec-am: install-binPROGRAMS
456
+
457
+ install-html: install-html-am
458
+
459
+ install-info: install-info-am
460
+
461
+ install-man:
462
+
463
+ install-pdf: install-pdf-am
464
+
465
+ install-ps: install-ps-am
466
+
467
+ installcheck-am:
468
+
469
+ maintainer-clean: maintainer-clean-am
470
+ -rm -rf ./$(DEPDIR)
471
+ -rm -f Makefile
472
+ maintainer-clean-am: distclean-am maintainer-clean-generic
473
+
474
+ mostlyclean: mostlyclean-am
475
+
476
+ mostlyclean-am: mostlyclean-compile mostlyclean-generic \
477
+ mostlyclean-libtool
478
+
479
+ pdf: pdf-am
480
+
481
+ pdf-am:
482
+
483
+ ps: ps-am
484
+
485
+ ps-am:
486
+
487
+ uninstall-am: uninstall-binPROGRAMS
488
+
489
+ .MAKE: install-am install-strip
490
+
491
+ .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
492
+ clean-generic clean-libtool ctags distclean distclean-compile \
493
+ distclean-generic distclean-libtool distclean-tags distdir dvi \
494
+ dvi-am html html-am info info-am install install-am \
495
+ install-binPROGRAMS install-data install-data-am install-dvi \
496
+ install-dvi-am install-exec install-exec-am install-html \
497
+ install-html-am install-info install-info-am install-man \
498
+ install-pdf install-pdf-am install-ps install-ps-am \
499
+ install-strip installcheck installcheck-am installdirs \
500
+ maintainer-clean maintainer-clean-generic mostlyclean \
501
+ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
502
+ pdf pdf-am ps ps-am tags uninstall uninstall-am \
503
+ uninstall-binPROGRAMS
504
+
505
+
506
+ test_next: next_test
507
+ .libs/next_test
508
+
509
+ test_key: key_test
510
+ .libs/key_test
511
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
512
+ # Otherwise a system limit (for SysV at least) may be exceeded.
513
+ .NOEXPORT:
@@ -0,0 +1,94 @@
1
+ require 'rubygems'
2
+ require 'ebb'
3
+ #require File.dirname(__FILE__) + '/../ruby_lib/ebb'
4
+ #require 'test/unit'
5
+ #require 'net/http'
6
+ #require 'socket'
7
+ require 'json'
8
+
9
+
10
+ Ebb.log = File.open('/dev/null','w')
11
+
12
+ TEST_PORT = 4044
13
+
14
+
15
+ class HelperApp
16
+ def call(env)
17
+ commands = env['PATH_INFO'].split('/')
18
+
19
+ if commands.include?('delay')
20
+ n = commands.last.to_i
21
+ raise "delay called with n <= 0" if n < 0
22
+ sleep n
23
+ body = "delayed #{n} seconds"
24
+ status = 200
25
+
26
+ elsif commands.include?('bytes')
27
+ n = commands.last.to_i
28
+ raise "bytes called with n <= 0" if n <= 0
29
+ body = "C"*n
30
+ status = 200
31
+
32
+ elsif commands.include?('test_post_length')
33
+ input_body = env['rack.input'].read
34
+
35
+ content_length_header = env['HTTP_CONTENT_LENGTH'].to_i
36
+
37
+ if content_length_header == input_body.length
38
+ body = "Content-Length matches input length"
39
+ status = 200
40
+ else
41
+ body = "Content-Length header is #{content_length_header} but body length is #{input_body.length}"
42
+ status = 500
43
+ end
44
+
45
+ else
46
+ status = 404
47
+ body = "Undefined url"
48
+ end
49
+
50
+ env['rack.input'] = env['rack.input'].read
51
+ env.delete('rack.errors')
52
+ env['output'] = body
53
+ env['status'] = status
54
+
55
+ [status, {'Content-Type' => 'text/json'}, env.to_json]
56
+ end
57
+ end
58
+ =begin
59
+ class Test::Unit::TestCase
60
+ def get(path)
61
+ response = Net::HTTP.get_response(URI.parse("http://0.0.0.0:#{TEST_PORT}#{path}"))
62
+ end
63
+
64
+ def post(path, data)
65
+ response = Net::HTTP.post_form(URI.parse("http://0.0.0.0:#{TEST_PORT}#{path}"), data)
66
+ end
67
+ end
68
+
69
+ class ServerTest < Test::Unit::TestCase
70
+ def get(path)
71
+ response = Net::HTTP.get_response(URI.parse("http://0.0.0.0:#{TEST_PORT}#{path}"))
72
+ env = JSON.parse(response.body)
73
+ end
74
+
75
+ def post(path, data)
76
+ response = Net::HTTP.post_form(URI.parse("http://0.0.0.0:#{TEST_PORT}#{path}"), data)
77
+ env = JSON.parse(response.body)
78
+ end
79
+
80
+ def setup
81
+ Thread.new { Ebb.start_server(HelperApp.new, :port => TEST_PORT) }
82
+ sleep 0.1 until Ebb.running?
83
+ end
84
+
85
+ def teardown
86
+ Ebb.stop_server
87
+ sleep 0.1 while Ebb.running?
88
+ end
89
+
90
+ def default_test
91
+ assert true
92
+ end
93
+ end
94
+ =end
@@ -0,0 +1,52 @@
1
+ #include "ev_dispatch.h"
2
+
3
+ using namespace EVD;
4
+
5
+
6
+ // catch SIGINT to kill process
7
+ static void SIGINT_handler(int sig)
8
+ {
9
+ exit(sig);
10
+ }
11
+
12
+ int main(int argc, char **argv)
13
+ {
14
+ Dispatch dispatcher;
15
+
16
+ if (signal(SIGINT, SIGINT_handler) == SIG_ERR) {
17
+ printf("SIGINT install error\n");
18
+ exit(1);
19
+ }
20
+
21
+ if( !dispatcher.start() ){
22
+ fprintf( stderr, "Failed to start up dispatcher\n" );
23
+ return 1;
24
+ }
25
+
26
+ printf( "dispatcher thread running...\n" );
27
+
28
+ request_t yahoo_id = dispatcher.request(Request::HTTP, "http://www.yahoo.com/");
29
+ request_t google_id = dispatcher.request(Request::HTTP, "http://www.google.com/");
30
+ printf("yahoo: %d\n", yahoo_id);
31
+ printf("google: %d\n", google_id);
32
+
33
+ Response *res = NULL;
34
+ Timer timeout(0,5);
35
+
36
+ while( dispatcher.wait_for_response_by_id( yahoo_id, timeout ) ){
37
+ printf("waiting for yahoo...\n");
38
+ }
39
+ res = dispatcher.response_for( yahoo_id );
40
+ printf("Recieved response from yahoo: %s, Content-Length: %d\n", res->name.c_str(), res->body.length() );
41
+ delete res;
42
+
43
+ while( dispatcher.wait_for_response_by_id( google_id, timeout ) ){
44
+ printf("waiting for google...\n");
45
+ }
46
+
47
+ res = dispatcher.response_for( google_id );
48
+ printf("Recieved response from google: %s, Content-Length: %d\n", res->name.c_str(), res->body.length() );
49
+ delete res;
50
+
51
+ return 0;
52
+ }