Re: [gtk-vnc-devel] [patch] connect()
- From: Jonh Wendell <jwendell gnome org>
- To: gtk-vnc-devel List <gtk-vnc-devel lists sourceforge net>
- Subject: Re: [gtk-vnc-devel] [patch] connect()
- Date: Wed, 14 Nov 2007 17:49:52 -0300
Em Qua, 2007-11-14 às 17:40 -0300, Jonh Wendell escreveu:
This time with the attachment.
--
Jonh Wendell
www.bani.com.br
diff -r 4a821c404746 src/gvnc.c
--- a/src/gvnc.c Fri Oct 26 09:59:54 2007 -0400
+++ b/src/gvnc.c Wed Nov 14 17:33:03 2007 -0300
@@ -2079,7 +2079,7 @@ gboolean gvnc_open_host(struct gvnc *gvn
}
reconnect:
- if (connect(fd, runp->ai_addr, runp->ai_addrlen) == 0) {
+ if ( (connect(fd, runp->ai_addr, runp->ai_addrlen) == 0) || errno == EISCONN) {
gvnc->channel = chan;
gvnc->fd = fd;
freeaddrinfo(ai);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]