Re: [gnet] Pb Time error
- From: Hans Petter Jansson <hpj ximian com>
- To: jan Govaere <jan govaere nordnet fr>
- Cc: "'gnet gnetlibrary org'" <gnet gnetlibrary org>
- Subject: Re: [gnet] Pb Time error
- Date: 17 Oct 2002 21:54:12 -0600
On Thu, 2002-10-17 at 04:35, jan Govaere wrote:
> the connect() fonction wait for a too long time : do you know howto set a
> connect_time_error ?
If you're using the async interface (which you should), you can make
connection attempts time out by setting a timeout with g_timeout_add ()
(see the glib docs) and cancel the connection attempt from that
callback. Make sure you remove the timeout if the connection attempt
succeeds.
--
Hans Petter
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]