Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
93
Issues
93
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
03e18677
Commit
03e18677
authored
Dec 20, 2007
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop const usage and work around a FBSD issue with listening sockets
svn path=/icecast/trunk/net/; revision=14319
parent
6bcbb416
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/net/sock.c
src/net/sock.c
+4
-2
No files found.
src/net/sock.c
View file @
03e18677
...
...
@@ -548,7 +548,7 @@ int sock_connected (sock_t sock, int timeout)
#ifdef HAVE_GETADDRINFO
sock_t
sock_connect_non_blocking
(
const
char
*
hostname
,
const
unsigned
port
)
sock_t
sock_connect_non_blocking
(
const
char
*
hostname
,
unsigned
port
)
{
int
sock
=
SOCK_ERROR
;
struct
addrinfo
*
ai
,
*
head
,
hints
;
...
...
@@ -674,6 +674,8 @@ sock_t sock_get_server_socket (int port, const char *sinterface)
continue
;
setsockopt
(
sock
,
SOL_SOCKET
,
SO_REUSEADDR
,
(
const
void
*
)
&
on
,
sizeof
(
on
));
on
=
0
;
setsockopt
(
sock
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
&
on
,
sizeof
on
);
if
(
bind
(
sock
,
ai
->
ai_addr
,
ai
->
ai_addrlen
)
<
0
)
{
...
...
@@ -693,7 +695,7 @@ sock_t sock_get_server_socket (int port, const char *sinterface)
#else
int
sock_try_connection
(
sock_t
sock
,
const
char
*
hostname
,
const
unsigned
port
)
int
sock_try_connection
(
sock_t
sock
,
const
char
*
hostname
,
unsigned
int
port
)
{
struct
sockaddr_in
sin
,
server
;
char
ip
[
MAX_ADDR_LEN
];
...
...
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