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
4abef78f
Commit
4abef78f
authored
Feb 14, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inline net_ListenTCP
parent
2a1f0c46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
16 deletions
+7
-16
include/vlc_network.h
include/vlc_network.h
+7
-4
src/network/tcp.c
src/network/tcp.c
+0
-12
No files found.
include/vlc_network.h
View file @
4abef78f
...
...
@@ -74,12 +74,15 @@ int net_Socket (vlc_object_t *obj, int family, int socktype, int proto);
#define net_OpenTCP(a, b, c) __net_ConnectTCP(VLC_OBJECT(a), b, c)
VLC_EXPORT
(
int
,
__net_ConnectTCP
,
(
vlc_object_t
*
p_this
,
const
char
*
psz_host
,
int
i_port
)
);
int
*
net_Listen
(
vlc_object_t
*
p_this
,
const
char
*
psz_host
,
int
i_port
,
int
family
,
int
socktype
,
int
protocol
);
VLC_EXPORT
(
int
*
,
net_Listen
,
(
vlc_object_t
*
p_this
,
const
char
*
psz_host
,
int
i_port
,
int
family
,
int
socktype
,
int
protocol
)
)
;
VLC_EXPORT
(
int
,
net_ListenSingle
,
(
vlc_object_t
*
p_this
,
const
char
*
psz_host
,
int
i_port
,
int
family
,
int
socktype
,
int
protocol
)
);
#define net_ListenTCP(a, b, c) __net_ListenTCP(VLC_OBJECT(a), b, c)
VLC_EXPORT
(
int
*
,
__net_ListenTCP
,
(
vlc_object_t
*
,
const
char
*
,
int
)
);
static
inline
int
*
__net_ListenTCP
(
vlc_object_t
*
obj
,
const
char
*
host
,
int
port
)
{
return
net_Listen
(
obj
,
host
,
port
,
AF_UNSPEC
,
SOCK_STREAM
,
IPPROTO_TCP
);
}
#define net_Accept(a, b, c) __net_Accept(VLC_OBJECT(a), b, c)
VLC_EXPORT
(
int
,
__net_Accept
,
(
vlc_object_t
*
,
int
*
,
mtime_t
)
);
...
...
@@ -89,7 +92,7 @@ VLC_EXPORT( int, __net_ConnectDgram, ( vlc_object_t *p_this, const char *psz_hos
static
inline
int
net_ConnectUDP
(
vlc_object_t
*
obj
,
const
char
*
host
,
int
port
,
int
hlim
)
{
return
net_ConnectDgram
(
obj
,
host
,
port
,
hlim
,
0
);
return
net_ConnectDgram
(
obj
,
host
,
port
,
hlim
,
IPPROTO_UDP
);
}
static
inline
int
net_ListenUDP1
(
vlc_object_t
*
obj
,
const
char
*
host
,
int
port
)
...
...
src/network/tcp.c
View file @
4abef78f
...
...
@@ -259,18 +259,6 @@ next_ai: /* failure */
}
/*****************************************************************************
* __net_ListenTCP:
*****************************************************************************
* Open TCP passive "listening" socket(s)
* This function returns NULL in case of error.
*****************************************************************************/
int
*
__net_ListenTCP
(
vlc_object_t
*
p_this
,
const
char
*
psz_host
,
int
i_port
)
{
return
net_Listen
(
p_this
,
psz_host
,
i_port
,
AF_UNSPEC
,
SOCK_STREAM
,
IPPROTO_TCP
);
}
/*****************************************************************************
* __net_Accept:
*****************************************************************************
...
...
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