/*****************************************************************************
- * tcp.c: TCP access plug-in
+ * tcp.c: TCP input module
*****************************************************************************
- * Copyright (C) 2003 VideoLAN
- * $Id: tcp.c,v 1.3 2004/01/05 15:07:16 fenrir Exp $
+ * Copyright (C) 2003-2004 VideoLAN
+ * $Id: tcp.c,v 1.4 2004/01/25 17:31:22 gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
/*****************************************************************************
* Module descriptor
*****************************************************************************/
-#define CACHING_TEXT N_("caching value in ms")
+#define CACHING_TEXT N_("Caching value in ms")
#define CACHING_LONGTEXT N_( \
"Allows you to modify the default caching value for udp streams. This " \
"value should be set in miliseconds units." )
vlc_module_begin();
set_description( _("TCP input") );
- add_category_hint( N_("TCP"), NULL , VLC_TRUE );
- add_integer( "tcp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE );
+
+ add_integer( "tcp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
+ CACHING_LONGTEXT, VLC_TRUE );
+
set_capability( "access", 0 );
add_shortcut( "tcp" );
set_callbacks( Open, Close );
vlc_module_end();
-
/*****************************************************************************
* Local prototypes
*****************************************************************************/
int fd;
};
-static ssize_t Read ( input_thread_t *, byte_t *, size_t );
+static ssize_t Read ( input_thread_t *, byte_t *, size_t );
/*****************************************************************************
* Open: open the socket
return net_Read( p_input, p_sys->fd, p_buffer, i_len, VLC_FALSE );
}
-