Example #1
0
        /// <summary>
        /// Executes the request on the base handle.
        /// </summary>
        public void Connect()
        {
            var addr = SockAddr.FromIpEndPoint(this.EndPoint);

            Libuv.EnsureSuccess(Libuv.uv_tcp_connect(this, this.BaseHandle, ref addr, _UvConnectCallback));
            this.EndPoint = null;
        }