Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e7734ca3
authored
Feb 18, 2016
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matpi_network_c: disabled adress reuse for listening socket
parent
92c3859b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
mtapi_plugins_c/mtapi_network_c/src/embb_mtapi_network_socket.c
+1
-2
No files found.
mtapi_plugins_c/mtapi_network_c/src/embb_mtapi_network_socket.c
View file @
e7734ca3
...
@@ -73,8 +73,7 @@ int embb_mtapi_network_socket_bind_and_listen(
...
@@ -73,8 +73,7 @@ int embb_mtapi_network_socket_bind_and_listen(
struct
sockaddr_in
in_addr
;
struct
sockaddr_in
in_addr
;
int
reuseaddr_on
=
1
;
int
reuseaddr_on
=
1
;
// addr reuse
if
(
SOCKET_ERROR
==
setsockopt
(
that
->
handle
,
SOL_SOCKET
,
0
,
if
(
SOCKET_ERROR
==
setsockopt
(
that
->
handle
,
SOL_SOCKET
,
SO_REUSEADDR
,
(
const
char
*
)
&
reuseaddr_on
,
sizeof
(
reuseaddr_on
)))
{
(
const
char
*
)
&
reuseaddr_on
,
sizeof
(
reuseaddr_on
)))
{
return
0
;
return
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