Commit 364159f8 authored by Stephane Letz's avatar Stephane Letz
Browse files

Fix for JackNetUnixSocket::SendTo.

parent ff1ed2c4
...@@ -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;
......
...@@ -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);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment