Implement support for userbuffers on Wii U
The Wii U socket implementation has limited memory available. To support larger receive buffers, application memory needs to be provided. To make sockets use this user memory the `SO_RUSRBUF` option needs to be set on the socket.
This commit is contained in:
committed by
Cameron Gutman
parent
d3a323fc8b
commit
0032f5e750
+5
-1
@@ -200,7 +200,11 @@ typedef enum _ENetPeerState
|
||||
|
||||
enum
|
||||
{
|
||||
#ifdef __3DS__
|
||||
#if defined(__WIIU__)
|
||||
ENET_HOST_RECEIVE_BUFFER_SIZE = 256 * 1024,
|
||||
// Send buffer size is limited since it cannot use userbuffers
|
||||
ENET_HOST_SEND_BUFFER_SIZE = 0x10000 - 1,
|
||||
#elif defined(__3DS__)
|
||||
ENET_HOST_RECEIVE_BUFFER_SIZE = 0x20000,
|
||||
ENET_HOST_SEND_BUFFER_SIZE = 0x20000,
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user