Re: [gnet] Pb Time error



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]