예제 #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));
        }