Example #1
0
 internal KayakServer(IServerDelegate del, IScheduler scheduler)
 {
     this.del = del;
     this.scheduler = scheduler;
     listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
     state = new KayakServerState();
 }
Example #2
0
        internal DefaultKayakServer(IServerDelegate del, IScheduler scheduler)
        {
            if (del == null)
                throw new ArgumentNullException("del");

            if (scheduler == null)
                throw new ArgumentNullException("scheduler");

            this.del = del;
            this.scheduler = scheduler;
            listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
            state = new KayakServerState();
        }
Example #3
0
        internal DefaultKayakServer(IServerDelegate del, IScheduler scheduler)
        {
            if (del == null)
            {
                throw new ArgumentNullException("del");
            }

            if (scheduler == null)
            {
                throw new ArgumentNullException("scheduler");
            }

            this.del       = del;
            this.scheduler = scheduler;
            listener       = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
            state          = new KayakServerState();
        }