开发者

Custom TCP/IP server in django webapp?

开发者 https://www.devze.com 2023-04-12 05:48 出处:网络
I was going to write this website for communicating with others and i want to implement a desktop app too so now I was wondering whether is is possible to integrate a python, maybe twisted tcp ip serv

I was going to write this website for communicating with others and i want to implement a desktop app too so now I was wondering whether is is possible to integrate a python, maybe twisted tcp ip server within django so that both the 开发者_JAVA百科site and the custom tcp could run alongside each other...?

Thanks in Advance


What for. Make your desktop app speak HTTP and use an alternate API provided by another application.


http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/

http://www.clemesha.org/blog/realtime-web-apps-python-django-orbited-twisted

these two things helped a lot for me.. and i am pretty sure i can fix it now


You could use any of the COMET-y methods that work on top of HTTP for (almost-)realtime communication if you don't want to go through the hassle (and possible fragility) of your own TCP/IP server.


imdjango (Instantly-made Mobile-server on Django) project started yesterday. You may use it to make both mobile server and web server on one django project.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号