Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
3ad1a7bf
Commit
3ad1a7bf
authored
Sep 08, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partial cleanup and improved Windows error messages
parent
b331a744
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
src/network/io.c
src/network/io.c
+5
-11
No files found.
src/network/io.c
View file @
3ad1a7bf
...
...
@@ -59,13 +59,11 @@ int net_Socket( vlc_object_t *p_this, int i_family, int i_socktype,
{
#if defined(WIN32) || defined(UNDER_CE)
if
(
WSAGetLastError
(
)
!=
WSAEAFNOSUPPORT
)
msg_Warn
(
p_this
,
"cannot create socket (%i)"
,
WSAGetLastError
()
);
#else
if
(
errno
!=
EAFNOSUPPORT
)
msg_Warn
(
p_this
,
"cannot create socket (%s)"
,
strerror
(
errno
)
);
#endif
msg_Warn
(
p_this
,
"cannot create socket: %s"
,
net_strerror
(
net_errno
)
);
return
-
1
;
}
...
...
@@ -179,11 +177,8 @@ int __net_Read( vlc_object_t *p_this, int fd, v_socket_t *p_vs,
if
(
i_ret
<
0
)
{
#if defined(WIN32) || defined(UNDER_CE)
msg_Err
(
p_this
,
"network select error (%d)"
,
WSAGetLastError
()
);
#else
msg_Err
(
p_this
,
"network select error (%s)"
,
strerror
(
errno
)
);
#endif
msg_Err
(
p_this
,
"network select error (%s)"
,
net_strerror
(
net_errno
)
);
return
i_total
>
0
?
i_total
:
-
1
;
}
...
...
@@ -208,12 +203,11 @@ int __net_Read( vlc_object_t *p_this, int fd, v_socket_t *p_vs,
i_total
+=
i_data
;
}
else
if
(
WSAGetLastError
()
==
WSAEINTR
)
continue
;
else
msg_Err
(
p_this
,
"recv failed (%i)"
,
WSAGetLastError
()
);
#else
/* EAGAIN only happens with p_vs (TLS) and it's not an error */
if
(
errno
!=
EAGAIN
)
msg_Err
(
p_this
,
"recv failed (%s)"
,
strerror
(
errno
)
);
#endif
msg_Err
(
p_this
,
"recv failed: %s"
,
net_strerror
(
net_errno
)
);
return
i_total
>
0
?
i_total
:
-
1
;
}
else
if
(
i_recv
==
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