Re: [gtk-vnc-devel] [patch] connect()



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]