mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-10 07:39:39 +01:00
turn off Nagle
This commit is contained in:
parent
36bc30d205
commit
3ccd494bbb
@ -39,10 +39,14 @@ static s32 tcp_socket(void)
|
|||||||
{
|
{
|
||||||
s32 s, res;
|
s32 s, res;
|
||||||
|
|
||||||
s = net_socket(PF_INET, SOCK_STREAM, 0);
|
s = net_socket(PF_INET, SOCK_STREAM, IPPROTO_IP);
|
||||||
if (s < 0)
|
if (s < 0)
|
||||||
return s;
|
return s;
|
||||||
|
|
||||||
|
// Switch off Nagle with TCP_NODELAY
|
||||||
|
u32 nodelay = 1;
|
||||||
|
net_setsockopt(s,IPPROTO_TCP,TCP_NODELAY,&nodelay,sizeof(nodelay));
|
||||||
|
|
||||||
res = net_fcntl(s, F_GETFL, 0);
|
res = net_fcntl(s, F_GETFL, 0);
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user