AMMediaboard: Use SetPlatformSocketOptions and SEND_FLAGS.
This commit is contained in:
1 parent
5d2e93fa3e
commit
f4b3f3cf0f
1 file changed
+7
-2
@@ -70,6 +70,8 @@ static int WSAGetLastError()
|
|||||||
namespace AMMediaboard
|
namespace AMMediaboard
|
||||||
{
|
{
|
||||||
|
|
||||||
|
using Common::SEND_FLAGS;
|
||||||
|
|
||||||
static bool s_firmware_map = false;
|
static bool s_firmware_map = false;
|
||||||
static bool s_test_menu = false;
|
static bool s_test_menu = false;
|
||||||
static SOCKET s_fd_namco_cam = 0;
|
static SOCKET s_fd_namco_cam = 0;
|
||||||
@@ -253,6 +255,9 @@ static SOCKET socket_(int af, int type, int protocol)
|
|||||||
Common::StrNetworkError());
|
Common::StrNetworkError());
|
||||||
return SOCKET_ERROR;
|
return SOCKET_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Common::SetPlatformSocketOptions(host_fd);
|
||||||
|
|
||||||
s_sockets[i] = host_fd;
|
s_sockets[i] = host_fd;
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
@@ -988,7 +993,7 @@ u32 ExecuteCommand(std::array<u32, 3>& dicmd_buf, u32* diimm_buf, u32 address, u
|
|||||||
len = 0;
|
len = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const int ret = send(fd, reinterpret_cast<char*>(s_network_buffer + off), len, 0);
|
const int ret = send(fd, reinterpret_cast<char*>(s_network_buffer + off), len, SEND_FLAGS);
|
||||||
const int err = WSAGetLastError();
|
const int err = WSAGetLastError();
|
||||||
|
|
||||||
NOTICE_LOG_FMT(AMMEDIABOARD_NET, "GC-AM: send( {}({}), 0x{:08x}, {} ): {} {}\n", fd,
|
NOTICE_LOG_FMT(AMMEDIABOARD_NET, "GC-AM: send( {}({}), 0x{:08x}, {} ): {} {}\n", fd,
|
||||||
@@ -1592,7 +1597,7 @@ u32 ExecuteCommand(std::array<u32, 3>& dicmd_buf, u32* diimm_buf, u32 address, u
|
|||||||
len = 0;
|
len = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const int ret = send(fd, reinterpret_cast<char*>(s_network_buffer + off), len, 0);
|
const int ret = send(fd, reinterpret_cast<char*>(s_network_buffer + off), len, SEND_FLAGS);
|
||||||
const int err = WSAGetLastError();
|
const int err = WSAGetLastError();
|
||||||
|
|
||||||
NOTICE_LOG_FMT(AMMEDIABOARD_NET, "GC-AM: send( {}({}), 0x{:08x}, {} ): {} {}\n", fd,
|
NOTICE_LOG_FMT(AMMEDIABOARD_NET, "GC-AM: send( {}({}), 0x{:08x}, {} ): {} {}\n", fd,
|
||||||
|
|||||||
Reference in new issue
Block a user