diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-05 12:15:05 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-05 12:15:05 -0800 |
commit | d15a3b366c7ec8b0f2dfc44e7802d7cc3ebd8290 (patch) | |
tree | 9a63ae6f04db60ca6d06d4c9603bcc7c7c821fdd /src/settings.js | |
parent | 814cd72af956fd215938e1d1bc8a9266339f63a4 (diff) |
fix networking for both stream and dgram
Diffstat (limited to 'src/settings.js')
-rw-r--r-- | src/settings.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/settings.js b/src/settings.js index ba37c715..42267428 100644 --- a/src/settings.js +++ b/src/settings.js @@ -147,12 +147,6 @@ var LIBRARY_DEBUG = 0; // Print out when we enter a library call (library*.js). var GL_DEBUG = 0; // Print out all calls into WebGL. As with LIBRARY_DEBUG, you can set a runtime // option, in this case GL.debug. var SOCKET_DEBUG = 0; // Log out socket/network data transfer. -var SOCKET_FORCED_MESSAGING = 0; // If 1, we make sure that each socket send ends up a single socket - // receive, that is, we force proper messaging (otherwise, sending - // [A] and [B] can show up on the other side as [A, B]). This will - // only work if both sides have it enabled, obviously, so it only - // makes sense for p2p or when connecting to a special server - we - // add some metadata (message size) to messages in this mode var PROFILE_MAIN_LOOP = 0; // Profile the function called in set_main_loop @@ -1197,6 +1191,8 @@ var C_DEFINES = {'SI_MESGQ': '5', '_SC_TTY_NAME_MAX': '41', 'AF_INET': '1', 'AF_INET6': '6', - 'FIONREAD': '1' + 'FIONREAD': '1', + 'SOCK_STREAM': '200', + 'IPPROTO_TCP': 1 }; |