[libdvbpsi-devel] dvbinfo: tcp fixes
Jean-Paul Saman
git at videolan.org
Tue Feb 4 11:21:56 CET 2014
libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | 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);
More information about the libdvbpsi-devel
mailing list