1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 13:37:03 +02:00

Some comment additions.

This commit is contained in:
Rolf Ahrenberg 2007-10-21 19:46:03 +00:00
parent e1c4d22fda
commit 8e979d2940
2 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: protocolhttp.c,v 1.20 2007/10/21 19:32:14 ajhseppa Exp $
* $Id: protocolhttp.c,v 1.21 2007/10/21 19:46:03 rahrenbe Exp $
*/
#include <sys/types.h>
@ -68,7 +68,7 @@ bool cIptvProtocolHttp::Connect(void)
sizeof(sockAddr));
// Non-blocking sockets always report in-progress error when connected
ERROR_IF_FUNC(err < 0 && errno != EINPROGRESS, "connect()", CloseSocket(), return false);
// Select on the socket completion, check if it is writable
// Select with 800ms timeout on the socket completion, check if it is writable
int retval = select_single_desc(socketDesc, 800000, true);
if (retval < 0)
return retval;
@ -140,7 +140,7 @@ bool cIptvProtocolHttp::GetHeaderLine(char* dest, unsigned int destLen,
while (!newline || !linefeed) {
socklen_t addrlen = sizeof(sockAddr);
// Wait for data
// Wait 500ms for data
int retval = select_single_desc(socketDesc, 500000, false);
// Check if error
if (retval < 0)

View File

@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: socket.c,v 1.4 2007/10/21 19:32:15 ajhseppa Exp $
* $Id: socket.c,v 1.5 2007/10/21 19:46:03 rahrenbe Exp $
*/
#include <sys/types.h>
@ -116,7 +116,7 @@ int cIptvUdpSocket::Read(unsigned char* *BufferAddr)
socklen_t addrlen = sizeof(sockAddr);
// Set argument point to read buffer
*BufferAddr = readBuffer;
// Wait for data
// Wait 500ms for data
int retval = select_single_desc(socketDesc, 500000, false);
// Check if error
if (retval < 0)
@ -193,7 +193,7 @@ int cIptvTcpSocket::Read(unsigned char* *BufferAddr)
socklen_t addrlen = sizeof(sockAddr);
// Set argument point to read buffer
*BufferAddr = readBuffer;
// Wait for data
// Wait 500ms for data
int retval = select_single_desc(socketDesc, 500000, false);
// Check if error
if (retval < 0)