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
b5290e75
Commit
b5290e75
authored
Oct 03, 2001
by
Tony Castley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to compile on BeOS.
parent
2215be5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
src/misc/netutils.c
src/misc/netutils.c
+13
-1
No files found.
src/misc/netutils.c
View file @
b5290e75
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* netutils.c: various network functions
* netutils.c: various network functions
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: netutils.c,v 1.3
7 2001/06/02 01:09:03 sam
Exp $
* $Id: netutils.c,v 1.3
8 2001/10/03 02:20:39 tcastley
Exp $
*
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Benoit Steiner <benny@via.ecp.fr>
* Benoit Steiner <benny@via.ecp.fr>
...
@@ -108,9 +108,15 @@ static int GetAdapterInfo ( int i_adapter, char *psz_string );
...
@@ -108,9 +108,15 @@ static int GetAdapterInfo ( int i_adapter, char *psz_string );
int
network_BuildLocalAddr
(
struct
sockaddr_in
*
p_socket
,
int
i_port
,
int
network_BuildLocalAddr
(
struct
sockaddr_in
*
p_socket
,
int
i_port
,
char
*
psz_broadcast
)
char
*
psz_broadcast
)
{
{
char
psz_hostname
[
INPUT_MAX_SOURCE_LENGTH
];
char
psz_hostname
[
INPUT_MAX_SOURCE_LENGTH
];
struct
hostent
*
p_hostent
;
struct
hostent
*
p_hostent
;
#if defined( SYS_BEOS )
intf_ErrMsg
(
"error: channel changing is not yet supported under BeOS"
);
return
(
1
);
#endif
/* Reset struct */
/* Reset struct */
memset
(
p_socket
,
0
,
sizeof
(
struct
sockaddr_in
)
);
memset
(
p_socket
,
0
,
sizeof
(
struct
sockaddr_in
)
);
p_socket
->
sin_family
=
AF_INET
;
/* family */
p_socket
->
sin_family
=
AF_INET
;
/* family */
...
@@ -161,8 +167,14 @@ int network_BuildLocalAddr( struct sockaddr_in * p_socket, int i_port,
...
@@ -161,8 +167,14 @@ int network_BuildLocalAddr( struct sockaddr_in * p_socket, int i_port,
*****************************************************************************/
*****************************************************************************/
int
network_BuildRemoteAddr
(
struct
sockaddr_in
*
p_socket
,
char
*
psz_server
)
int
network_BuildRemoteAddr
(
struct
sockaddr_in
*
p_socket
,
char
*
psz_server
)
{
{
struct
hostent
*
p_hostent
;
struct
hostent
*
p_hostent
;
#if defined( SYS_BEOS )
intf_ErrMsg
(
"error: channel changing is not yet supported under BeOS"
);
return
(
1
);
#endif
/* Reset structure */
/* Reset structure */
memset
(
p_socket
,
0
,
sizeof
(
struct
sockaddr_in
)
);
memset
(
p_socket
,
0
,
sizeof
(
struct
sockaddr_in
)
);
p_socket
->
sin_family
=
AF_INET
;
/* family */
p_socket
->
sin_family
=
AF_INET
;
/* family */
...
...
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