Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Networking #4

Open
1 task done
isc30 opened this issue Jun 15, 2019 · 2 comments
Open
1 task done

Networking #4

isc30 opened this issue Jun 15, 2019 · 2 comments
Labels
feature New features

Comments

@isc30
Copy link
Owner

isc30 commented Jun 15, 2019

Before starting

  • Investigate POCO libraries and find a workaround for "not detected compiler features" in emscripten

If POCO is not an option, then

Rely on SDL2_NET with TCP and implement websocket entrypoint (or use websocketify)
A nice wrapper can be used too https://github.com/mwthinker/Network

Interesting resources for SDL_net

@isc30
Copy link
Owner Author

isc30 commented Jun 16, 2019

Update:

  • The last version of POCO isn't trivial to compile in emscripten. ticket here
  • SDL2_net isn't detected by emscripten (there is no SDL_net.h in emscripten includes even tho it appears listed when running emcc --show-ports). Waiting for this ticket

Next steps:

  • Try using an older version of POCO that supports WebSockets

  • Investigate if adding SDL_net.h manually works

    Adding SDL_net.h manually works well, this might be a way of doing this.
    Problem: SDL2_net doesn't have any websocket layer, so I might need to build it by myself for the server :(

@isc30 isc30 added the feature New features label Jun 16, 2019
@isc30
Copy link
Owner Author

isc30 commented Jun 17, 2019

This topic is also being discussed in Corrade repository as it maybe makes sense to create a simple socket abstraction there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features
Projects
None yet
Development

No branches or pull requests

1 participant