示例#1
0
文件: UvTcp.cs 项目: codecopy/NLibuv
        /// <summary>
        /// Binds the handle to the specified end point.
        /// </summary>
        /// <param name="endPoint"></param>
        public void Bind(IPEndPoint endPoint)
        {
            this.EnsureCallingThread();

            var addr = SockAddr.FromIpEndPoint(endPoint);

            Libuv.EnsureSuccess(Libuv.uv_tcp_bind(this, ref addr, 0));
        }