Re: Twisted an UI's?

2020-09-20 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Twisted an UI's? Let me start off by saying that data only "goes missing" if you use UDP, and Twisted doesn't use UDP under the hood. If you go grab the socket module and use it directly even, data doesn't go missing.  TCP doesn't drop data.  You may not have great, or

Re: Twisted an UI's?

2020-09-20 Thread AudioGames . net Forum — Developers room : BoundTo via Audiogames-reflector
Re: Twisted an UI's? @2Twisted has certainly been around for quite a while, but as far as I know it's still in development. The reason I'm more interested in using it at the moment as opposed to something like asynchat is due to all of the extra work that goes into working with sockets

Re: Twisted an UI's?

2020-09-20 Thread AudioGames . net Forum — Developers room : BoundTo via Audiogames-reflector
Re: Twisted an UI's? @2Twisted has certainly been around for quite a while, but as far as I know it's still in development. The reason I'm more interested in using it at the moment as opposed to something like asynchat is due to all of the extra work that goes into working with sockets

Re: Twisted an UI's?

2020-09-20 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Re: Twisted an UI's? @2, are you saying you wouldn't recommend Twisted for networking development? If so, which libraries would you recommend for Python? Are there any languages becides Python that I would have an easier/better time with networking? URL: https://forum.audiogames.net/post

Re: Twisted an UI's?

2020-09-20 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Twisted an UI's? I've posted a bit of twisted code before, you can find some of it [here] for how to integrate twisted with a UI, with pyglet at least. Generally speaking i'd have a client protocol register itself with the game class, and use twisteds reactor.coiterate function

Re: Twisted an UI's?

2020-09-20 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Twisted an UI's? You probably want to find and use a threadsafe queue, put the Twisted reactor on one thread, put WX on the other, and communicate back and forth.  I know WX has a way to call  a function in the message loop in a threadsafe manner, and Twisted might offer the same

Twisted an UI's?

2020-09-20 Thread AudioGames . net Forum — Developers room : BoundTo via Audiogames-reflector
Twisted an UI's? So, I've been learning about Twisted, and a lot of it makes sense to me. For the most part, I understand the basics. (the various pieces and how they work together) I'm having a hard time figuring out how I would cleanly integrate the code for a client, for example