public HttpServer(HttpConnectionCallback callback, IOLoop ioloop) { this.callback = callback; this.ioloop = ioloop; AppHost.AddTimeout (TimeSpan.FromMinutes (2), RepeatBehavior.Forever, null, ExpireTransactions); }
public Timers(Manos.IO.IOLoop loop, int initialSize = 2) { this.loop = loop; freeList = new Queue <int>(initialSize); growWatchers(initialSize); }
public IOStream(IOLoop ioloop) { this.ioloop = ioloop; TimeOut = TimeSpan.FromMinutes(1); Expires = DateTime.UtcNow + TimeOut; }
public IOStream(IOLoop ioloop) { this.ioloop = ioloop; TimeOut = TimeSpan.FromMinutes (1); Expires = DateTime.UtcNow + TimeOut; }
public Timers( Manos.IO.IOLoop loop, int initialSize = 2 ) { this.loop = loop; freeList = new Queue<int>( initialSize ); growWatchers( initialSize ); }
public UdpReceiver( IOLoop loop, int maxMessageSize ) { this.loop = loop; readBuffer = new byte[maxMessageSize]; this.maxMessageSize = maxMessageSize; }
public Boundary( IOLoop loop, int maxWorkPerLoop ) { asyncWatcher = new AsyncWatcher ((LibEvLoop)loop.EventLoop, ( l, w, et ) => ProcessWork()); asyncWatcher.Start (); workQueue = new ConcurrentQueue<Action> (); this.maxWorkPerLoop = maxWorkPerLoop; }
public SocketStream(Socket socket, IOLoop ioloop) : base(ioloop) { this.socket = socket; if (socket != null) { socket.Blocking = false; SetHandle(IOWatcher.GetHandle(socket)); state = SocketState.Open; } }
public SocketStream(Socket socket, IOLoop ioloop) : base(ioloop) { this.socket = socket; if (socket != null) { socket.Blocking = false; SetHandle (IOWatcher.GetHandle (socket)); state = SocketState.Open; } }
public SocketStream(SocketInfo info, IOLoop ioloop) : base(ioloop) { fd = info.fd; if (fd > 0) { SetHandle(fd); state = SocketState.Open; } port = info.port; }
public SocketStream(SocketInfo info, IOLoop ioloop) : base(ioloop) { fd = info.fd; if (fd > 0) { SetHandle (fd); state = SocketState.Open; } port = info.port; }
public IOStream(Socket socket, IOLoop ioloop) { this.socket = socket; this.ioloop = ioloop; TimeOut = TimeSpan.FromMinutes (2); Expires = DateTime.UtcNow + TimeOut; socket.Blocking = false; handle = IOWatcher.GetHandle (socket); read_watcher = new IOWatcher (handle, EventTypes.Read, ioloop.EventLoop, HandleIOReadEvent); write_watcher = new IOWatcher (handle, EventTypes.Write, ioloop.EventLoop, HandleIOWriteEvent); }
public HttpServer(HttpConnectionCallback callback, IOLoop ioloop, bool closeOnEnd = false ) { this.callback = callback; this.ioloop = ioloop; this.closeOnEnd = closeOnEnd; }
public UdpReceiver( IOLoop loop ) : this(loop, 128*1024) { }
public Complete( IOLoop loop ) { Preconditions.IsNotNull( loop, "IOLoop has not been defined - can't set a timeout" ); this.loop = loop; }
public Boundary( IOLoop loop ) : this(loop, 18) { }
public SocketStream(IOLoop ioloop) : base(ioloop) { }
public HttpServer(IOLoop ioloop, bool closeOnEnd = false) { this.ioloop = ioloop; this.closeOnEnd = closeOnEnd; }
public SocketStream(IOLoop ioloop) : this(null, ioloop) { }
public HttpServer(HttpConnectionCallback callback, IOLoop ioloop) { this.callback = callback; this.ioloop = ioloop; }