Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TPF
jack2
Commits
364159f8
Commit
364159f8
authored
Sep 13, 2016
by
Stephane Letz
Browse files
Fix for JackNetUnixSocket::SendTo.
parent
ff1ed2c4
Changes
2
Show whitespace changes
Inline
Side-by-side
posix/JackNetUnixSocket.cpp
View file @
364159f8
...
@@ -414,6 +414,7 @@ namespace Jack
...
@@ -414,6 +414,7 @@ namespace Jack
if
(
addr_conv
<
1
)
{
if
(
addr_conv
<
1
)
{
return
addr_conv
;
return
addr_conv
;
}
}
fSendAddr
.
sin_port
=
htons
(
fPort
);
#if defined(__sun__) || defined(sun)
#if defined(__sun__) || defined(sun)
if
(
WaitWrite
()
<
0
)
{
if
(
WaitWrite
()
<
0
)
{
return
-
1
;
return
-
1
;
...
...
windows/JackNetWinSocket.cpp
View file @
364159f8
...
@@ -322,6 +322,7 @@ namespace Jack
...
@@ -322,6 +322,7 @@ namespace Jack
int
JackNetWinSocket
::
SendTo
(
const
void
*
buffer
,
size_t
nbytes
,
int
flags
,
const
char
*
ip
)
int
JackNetWinSocket
::
SendTo
(
const
void
*
buffer
,
size_t
nbytes
,
int
flags
,
const
char
*
ip
)
{
{
fSendAddr
.
sin_addr
.
s_addr
=
inet_addr
(
ip
);
fSendAddr
.
sin_addr
.
s_addr
=
inet_addr
(
ip
);
fSendAddr
.
sin_port
=
htons
(
fPort
);
return
SendTo
(
buffer
,
nbytes
,
flags
);
return
SendTo
(
buffer
,
nbytes
,
flags
);
}
}
...
...
Write
Preview
Supports
Markdown
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