First, deps.
$ brew install libev
Edit CMakeLists.txt
and set the following to false:
ONION_USE_PAM
ONION_USE_PTHREADS
set terminal png | |
set output "plot.png" | |
set title "Cannon ball" | |
set key autotitle columnhead | |
set xlabel "Time" | |
set datafile separator ',' | |
plot "output.csv" u 1:62 w lines |
public interface IApplication { | |
// either may throw exception | |
IAsyncResult BeginInvoke(IRequest request, AsyncCallback callback, object state); | |
IResponse EndInvoke(IAsyncResult result); | |
} |
// this snippet assumes the IAsyncResult implementation provided here: | |
// http://msdn.microsoft.com/en-us/magazine/cc163467.aspx | |
using System; | |
using Owin; | |
namespace TransformMiddleware | |
{ | |
// Defines a tranformation of an HTTP context. | |
public interface IHttpTransform |
using System; | |
using System.Disposables; | |
using System.IO; | |
using System.Linq; | |
using System.Threading; | |
namespace RxVsTplSamples | |
{ | |
public static partial class Extensions | |
{ |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
namespace Owin | |
{ | |
public struct OwinResponse | |
{ | |
public string Status; | |
public IDictionary<string, IEnumerable<string>> Headers; | |
public IEnumerable<object> Body; |
using System; | |
using System.Disposables; | |
using System.Linq; | |
using System.Threading; | |
namespace RxVsTplSamples | |
{ | |
public class RxAsyncOperation<TArg, TResult> | |
{ | |
Func<TArg, IObservable<TResult>> operation; |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ParserDriver | |
{ | |
public class Parser | |
{ | |
public string Method; |
using System; | |
using System.Collections.Generic; | |
namespace Kayak.Http | |
{ | |
public class HttpRequestEventArgs : EventArgs | |
{ | |
public IHttpServerRequest Request { get; internal set; } | |
public IHttpServerResponse Response { get; internal set; } | |
} |
using System; | |
using System.Collections.Generic; | |
using Kayak.Http; | |
// utterly, completely, maximally untested sketch of an OWIN-Kayak adapter. | |
namespace Gate.Kayak | |
{ | |
using Application = | |
Action< | |
IDictionary<string, object>, |