![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
|
Python, GUI and sockets.
Hello,
I need help, with making a socket server in Python. I have already searched google and stuff, but haven't found anything useful. I do have found some echo server examples, but they terminate themselves, as soon, as the client leaves. Also I have found examples, what support multiple clients, but they don't work (they give me errors, when I run them). Alse, I want to make this server with graphical user interface (gui), but I haven't understood, how to program GUI in Python. In general i want to make asynchronous socket server with gui, rooms and stuff, running on TCP and every message terminated by zero byte ( \0 ). Please someone help me : ) |
|
|
|
|
|
#2 |
|
Programmer
|
You like that comma key? Anyway.. check out the . Check
I'm not quite sure what you mean- the program ends whenever it has no clients connected? That doesn't make a lot of sense. Check this, as well as google results for things like "python socket example." Here are a few links from the Python docs: http://docs.python.org/lib/module-SocketServer.html http://docs.python.org/lib/module-socket.html I'm not good with gui-related things (not in Python, C++, or anything that I try), so I can't give a whole lot of help on Tkinter. But I can provide a few links: http://docs.python.org/lib/tkinter.html http://docs.python.org/lib/module-Tkinter.html |
|
|
|
|
|
#3 | |||||
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Quote:
Quote:
Quote:
Quote:
Quote:
As for rooms and stuff.... what do you mean? Rooms as in rooms in a game? If you're making a game server, you definitely don't want it to have a GUI. Needs to be as efficient and low overhead as possible. If you're making anything remotely "big" - e.g an asynchronous (not multi-threaded) server application, I strongly recommend the Twisted network framework. It's a robust, scalable framework, with a more object orientated API than the C-style socket module. |
|||||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|