Commit 7db4c54c authored by Laurent Aimar's avatar Laurent Aimar

* all: forgot to commit theses files.

parent 8d5a171a
......@@ -2,7 +2,7 @@
* vlc_httpd.h: builtin HTTP/RTSP server.
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id: vlc_httpd.h,v 1.1 2004/03/03 13:23:47 fenrir Exp $
* $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
......@@ -127,6 +127,7 @@ VLC_EXPORT( void, httpd_UrlDelete, ( httpd_url_t * ) );
/* Default client mode is FILE, use these to change it */
VLC_EXPORT( void, httpd_ClientModeStream, ( httpd_client_t *cl ) );
VLC_EXPORT( void, httpd_ClientModeBidir, ( httpd_client_t *cl ) );
VLC_EXPORT( char*, httpd_ClientIP, ( httpd_client_t *cl ) );
/* High level */
......
......@@ -1267,7 +1267,7 @@ static void httpd_ClientInit( httpd_client_t *cl )
{
cl->i_state = HTTPD_CLIENT_RECEIVING;
cl->i_activity_date = mdate();
cl->i_activity_timeout = 10000000LL;
cl->i_activity_timeout = 50000000LL;
cl->i_buffer_size = 10000;
cl->i_buffer = 0;
cl->p_buffer = malloc( cl->i_buffer_size );
......@@ -1288,6 +1288,12 @@ void httpd_ClientModeBidir( httpd_client_t *cl )
cl->i_mode = HTTPD_CLIENT_BIDIR;
}
char* httpd_ClientIP( httpd_client_t *cl )
{
/* FIXME not thread safe */
return strdup( inet_ntoa( cl->sock.sin_addr ) );
}
static void httpd_ClientClean( httpd_client_t *cl )
{
if( cl->fd > 0 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment