dvbinfo: tcp fixes

[email protected] (Jean-Paul Saman)
Newsgroups gmane.comp.video.videolan.libdvbpsi.devel
Message-ID <[email protected]>
libdvbpsi | branch: master | Jean-Paul Saman <[email protected]> | Mon Jan 27 16:08:20 2014 +0100| [d9bf9c7570ddd48b5334fdc95f14c625178871d7] | committer: Jean-Paul Saman

dvbinfo: tcp fixes

> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=d9bf9c7570ddd48b5334fdc95f14c625178871d7
---

 examples/dvbinfo/tcp.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/examples/dvbinfo/tcp.c b/examples/dvbinfo/tcp.c
index 481f273..cae9849 100644
--- a/examples/dvbinfo/tcp.c
+++ b/examples/dvbinfo/tcp.c
@@ -80,7 +80,7 @@ int tcp_close(int fd)
 {
     int result = 0;
 
-    result = shutdown(fd, 2);
+    result = shutdown(fd, SHUT_RDWR);
     if (result < 0)
         perror("tcp shutdown error");
     return result;
@@ -149,6 +149,8 @@ int tcp_open(const char *ipaddress, int port)
             perror( "tcp connect error" );
             continue;
         }
+
+        break; /* success */
     }
 
     freeaddrinfo(addr);

_______________________________________________
libdvbpsi-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvbpsi-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.