Mercurial > vba-linux
diff src/gba/remote.cpp @ 21:e0545ef33bb9
trying to fix network problem
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 04 Mar 2012 16:56:20 -0600 |
parents | ecd30c5e2f5a |
children | 8870086b716c |
line wrap: on
line diff
1.1 --- a/src/gba/remote.cpp Sun Mar 04 14:35:54 2012 -0600 1.2 +++ b/src/gba/remote.cpp Sun Mar 04 16:56:20 2012 -0600 1.3 @@ -121,12 +121,15 @@ 1.4 fprintf(stderr, "Error listening\n"); 1.5 exit(-1); 1.6 } 1.7 - socklen_t len = sizeof(addr); 1.8 + 1.9 1.10 #ifdef WIN32 1.11 int flag = 0; 1.12 ioctlsocket(s, FIONBIO, (unsigned long *)&flag); 1.13 #endif // WIN32 1.14 + 1.15 + socklen_t len = sizeof(addr); 1.16 + 1.17 int s2 = accept(s, (sockaddr *)&addr, &len); 1.18 if (s2 > 0) 1.19 {