Re: [gnet] Pb Time error



gnet_tcp_socket_new() blocks.  It may take several seconds to connect or
several seconds to fail if it cannot connect.  If you don't want to block,
use gnet_tcp_socket_new_async().  See the echoclient for an example.

David



On Thu, 17 Oct 2002, jan Govaere wrote:
> I've got another pb : I test this for two days and it work good but when I
> test it with a firewall, It doesn't work. It doesn't test all the port and
> so the result is no good. I think there is a pb in src/trv =
> connect(sockfd, &s->sa, sizeof(s->sa));
>
> rv = connect(sockfd, &s->sa, sizeof(s->sa));
> (line 260)
>
> the connect() fonction wait for a too long time : do you know howto set a
> connect_time_error ?


-- 
      __          _    __ David Helder - dhelder umich edu
  ___/ /__ __  __(_)__/ / <http://www.eecs.umich.edu/~dhelder>
 / _  / _ `/ |/ / / _  /  Jungle Monkey: <http://www.junglemonkey.net>
 |_,_/|_,_/|___/_/|_,_/   Paper CD Case: <http://www.papercdcase.com>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]