pabloko / Lua-JIT-RakNet

RakNet for LuaJIT module & server
4 stars 2 forks source link

HTTPS traffic #1

Open FR3egn37 opened 6 years ago

FR3egn37 commented 6 years ago

I see there is no HTTPS option, and when using this in AMS all errors are compressed, is there anyway you could make this multithread with your multi thread plugin?

And some documentations would be useful, what we can and can't include inside the commands, thanks.

pabloko commented 6 years ago

Well, the http implementation on the server is merely a tcp server binded on the same port as raknet its doing his stuff on udp. This means that you must process&output the corresponding http headers and subsequently the encryption phase, that is totally out of the scope of this experiment. If you relly need to use ssl you may use nginx and reverse proxy your server using ssl, so transport will use ssl on your http server.

Regarding to multithread, this module has 2 ways of invoking worker task, by calling netprocess or using multithread mode when you call OpenServer: RakNet.OpenServer(87, 500, "", MULTITHREADED) or use SINGLETHREADED and do subsequent calls to RakNet.Update()

You can find more documentation here: https://www.amsspecialist.com/viewtopic.php?t=3589 and binaries with working samples here: https://mega.nz/#!lBxFEZjY!WScKrFhB_av7ckwD53pPTAkPhQ_mRdUjH2PfD0sF0iI