Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
7db4c54c
Commit
7db4c54c
authored
Mar 22, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: forgot to commit theses files.
parent
8d5a171a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
include/vlc_httpd.h
include/vlc_httpd.h
+2
-1
src/misc/httpd.c
src/misc/httpd.c
+7
-1
No files found.
include/vlc_httpd.h
View file @
7db4c54c
...
...
@@ -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 */
...
...
src/misc/httpd.c
View file @
7db4c54c
...
...
@@ -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
=
1
0000000LL
;
cl
->
i_activity_timeout
=
5
0000000LL
;
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment