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
42388a77
Commit
42388a77
authored
Feb 26, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net_Close() is a one-liner, so inline it
parent
b5ed36d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
17 deletions
+6
-17
include/vlc_network.h
include/vlc_network.h
+6
-0
src/network/io.c
src/network/io.c
+0
-17
No files found.
include/vlc_network.h
View file @
42388a77
...
@@ -198,6 +198,12 @@ int poll (struct pollfd *fds, unsigned nfds, int timeout);
...
@@ -198,6 +198,12 @@ int poll (struct pollfd *fds, unsigned nfds, int timeout);
# define net_StopRecv( fd ) (void)0
# define net_StopRecv( fd ) (void)0
#endif
#endif
#ifdef WIN32
# define net_Close( fd ) closesocket ((SOCKET)fd)
#else
# define net_Close( fd ) close (fd)
#endif
/* Portable network names/addresses resolution layer */
/* Portable network names/addresses resolution layer */
/* GAI error codes */
/* GAI error codes */
...
...
src/network/io.c
View file @
42388a77
...
@@ -265,23 +265,6 @@ int net_ListenSingle (vlc_object_t *obj, const char *host, int port,
...
@@ -265,23 +265,6 @@ int net_ListenSingle (vlc_object_t *obj, const char *host, int port,
/*****************************************************************************
* __net_Close:
*****************************************************************************
* Close a network handle
*****************************************************************************/
void
net_Close
(
int
fd
)
{
#ifdef UNDER_CE
CloseHandle
((
HANDLE
)
fd
);
#elif defined (WIN32)
closesocket
(
fd
);
#else
(
void
)
close
(
fd
);
#endif
}
static
ssize_t
static
ssize_t
net_ReadInner
(
vlc_object_t
*
restrict
p_this
,
unsigned
fdc
,
const
int
*
fdv
,
net_ReadInner
(
vlc_object_t
*
restrict
p_this
,
unsigned
fdc
,
const
int
*
fdv
,
const
v_socket_t
*
const
*
restrict
vsv
,
const
v_socket_t
*
const
*
restrict
vsv
,
...
...
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