コード例 #1
0
        public Task StartAsync(
            IEndPointInformation endPointInformation,
            LibuvThread thread)
        {
            EndPointInformation = endPointInformation;
            Thread = thread;

            return(Thread.PostAsync(listener =>
            {
                listener.ListenSocket = listener.CreateListenSocket();
                listener.ListenSocket.Listen(LibuvConstants.ListenBacklog, ConnectionCallback, listener);
            }, this));
        }