예제 #1
0
파일: HttpServer.cs 프로젝트: atheken/manos
        public HttpServer(HttpConnectionCallback callback, IOLoop ioloop)
        {
            this.callback = callback;
            this.ioloop = ioloop;

            AppHost.AddTimeout (TimeSpan.FromMinutes (2), RepeatBehavior.Forever, null, ExpireTransactions);
        }
예제 #2
0
        public Timers(Manos.IO.IOLoop loop, int initialSize = 2)
        {
            this.loop = loop;
            freeList  = new Queue <int>(initialSize);

            growWatchers(initialSize);
        }
예제 #3
0
파일: IOStream.cs 프로젝트: Bhanditz/manos
        public IOStream(IOLoop ioloop)
        {
            this.ioloop = ioloop;

            TimeOut = TimeSpan.FromMinutes(1);
            Expires = DateTime.UtcNow + TimeOut;
        }
예제 #4
0
        public IOStream(IOLoop ioloop)
        {
            this.ioloop = ioloop;

            TimeOut = TimeSpan.FromMinutes (1);
            Expires = DateTime.UtcNow + TimeOut;
        }
예제 #5
0
        public Timers( Manos.IO.IOLoop loop, int initialSize = 2 )
        {
            this.loop = loop;
            freeList = new Queue<int>( initialSize );

            growWatchers( initialSize );
        }
예제 #6
0
        public UdpReceiver( IOLoop loop, int maxMessageSize )
        {
            this.loop = loop;

            readBuffer = new byte[maxMessageSize];
            this.maxMessageSize = maxMessageSize;
        }
예제 #7
0
파일: Boundary.cs 프로젝트: aaronfeng/manos
        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;
        }
예제 #8
0
        public SocketStream(Socket socket, IOLoop ioloop) : base(ioloop)
        {
            this.socket = socket;

            if (socket != null)
            {
                socket.Blocking = false;
                SetHandle(IOWatcher.GetHandle(socket));
                state = SocketState.Open;
            }
        }
예제 #9
0
파일: SocketStream.cs 프로젝트: koush/manos
        public SocketStream(Socket socket, IOLoop ioloop)
            : base(ioloop)
        {
            this.socket = socket;

            if (socket != null) {
                socket.Blocking = false;
                SetHandle (IOWatcher.GetHandle (socket));
                state = SocketState.Open;
            }
        }
예제 #10
0
파일: SocketStream.cs 프로젝트: txdv/manos
        public SocketStream(SocketInfo info, IOLoop ioloop) : base(ioloop)
        {
            fd = info.fd;

            if (fd > 0)
            {
                SetHandle(fd);
                state = SocketState.Open;
            }

            port = info.port;
        }
예제 #11
0
파일: SocketStream.cs 프로젝트: axelc/manos
        public SocketStream(SocketInfo info, IOLoop ioloop)
            : base(ioloop)
        {
            fd = info.fd;

            if (fd > 0) {
                SetHandle (fd);
                state = SocketState.Open;
            }

            port = info.port;
        }
예제 #12
0
파일: IOStream.cs 프로젝트: nickcanz/manos
        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);
        }
예제 #13
0
파일: HttpServer.cs 프로젝트: JoergEg/manos
 public HttpServer(HttpConnectionCallback callback, IOLoop ioloop, bool closeOnEnd = false )
 {
     this.callback = callback;
     this.ioloop = ioloop;
     this.closeOnEnd = closeOnEnd;
 }
예제 #14
0
 public UdpReceiver( IOLoop loop )
     : this(loop, 128*1024)
 {
 }
예제 #15
0
 public Complete( IOLoop loop )
 {
     Preconditions.IsNotNull( loop, "IOLoop has not been defined - can't set a timeout" );
     this.loop = loop;
 }
예제 #16
0
파일: Boundary.cs 프로젝트: aaronfeng/manos
 public Boundary( IOLoop loop )
     : this(loop, 18)
 {
 }
예제 #17
0
 public SocketStream(IOLoop ioloop) : base(ioloop)
 {
 }
예제 #18
0
파일: HttpServer.cs 프로젝트: txdv/manos
 public HttpServer(IOLoop ioloop, bool closeOnEnd = false)
 {
     this.ioloop = ioloop;
     this.closeOnEnd = closeOnEnd;
 }
예제 #19
0
 public SocketStream(IOLoop ioloop) : this(null, ioloop)
 {
 }
예제 #20
0
파일: SocketStream.cs 프로젝트: koush/manos
 public SocketStream(IOLoop ioloop)
     : this(null, ioloop)
 {
 }
예제 #21
0
파일: SocketStream.cs 프로젝트: axelc/manos
 public SocketStream(IOLoop ioloop)
     : base(ioloop)
 {
 }
예제 #22
0
파일: HttpServer.cs 프로젝트: koush/manos
 public HttpServer(HttpConnectionCallback callback, IOLoop ioloop)
 {
     this.callback = callback;
     this.ioloop = ioloop;
 }