Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
209771fe
Commit
209771fe
authored
Jan 22, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/net.c: Compilation fix.
parent
19cb1a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
src/misc/net.c
src/misc/net.c
+7
-8
No files found.
src/misc/net.c
View file @
209771fe
...
...
@@ -2,7 +2,7 @@
* net.c:
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id: net.c,v 1.
7 2004/01/22 00:00:34 fenrir
Exp $
* $Id: net.c,v 1.
8 2004/01/22 17:03:44 gbazin
Exp $
*
* Authors: Laurent Aimar <fenrir@videolan.org>
*
...
...
@@ -115,7 +115,8 @@ int __net_OpenTCP( vlc_object_t *p_this, char *psz_host, int i_port )
*****************************************************************************
* Open a UDP connection and return a handle
*****************************************************************************/
int
__net_OpenUDP
(
vlc_object_t
*
p_this
,
char
*
psz_bind
,
int
i_bind
,
char
*
psz_server
,
int
i_server
)
int
__net_OpenUDP
(
vlc_object_t
*
p_this
,
char
*
psz_bind
,
int
i_bind
,
char
*
psz_server
,
int
i_server
)
{
vlc_value_t
val
;
void
*
private
;
...
...
@@ -189,7 +190,8 @@ void net_Close( int fd )
* If b_rety is true, then we repeat until we have read the right amount of
* data
*****************************************************************************/
int
__net_Read
(
vlc_object_t
*
p_this
,
int
fd
,
uint8_t
*
p_data
,
int
i_data
,
vlc_bool_t
b_retry
)
int
__net_Read
(
vlc_object_t
*
p_this
,
int
fd
,
uint8_t
*
p_data
,
int
i_data
,
vlc_bool_t
b_retry
)
{
struct
timeval
timeout
;
fd_set
fds
;
...
...
@@ -232,9 +234,9 @@ int __net_Read( vlc_object_t *p_this, int fd, uint8_t *p_data, int i_data, vlc_b
* the first part of the datagram. */
if
(
WSAGetLastError
()
==
WSAEMSGSIZE
)
{
msg_Err
(
p_
input
,
"recv() failed. "
msg_Err
(
p_
this
,
"recv() failed. "
"Increase the mtu size (--mtu option)"
);
i_recv
=
i_
len
;
i_recv
=
i_
data
;
}
else
#endif
...
...
@@ -365,6 +367,3 @@ int net_Printf( vlc_object_t *p_this, int fd, char *psz_fmt, ... )
return
i_ret
;
}
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