Name: [16797] Tim Bower
Member: 8 months
Authored: 8 videos
Description: Assistant Professor Computer Systems Technology Kansas State University at Salina `Tim Bower <http://www.sal.ksu.edu/faculty/tim/>`_ My blog: `Open Source on the Prairie <http://prairiepy.blogspot.com/>`_ ...

[1544] Demonstartion of multi-threaded chat server and client (1/4)

in series: Python Network Programming

video tutorial by Tim Bower

(Showmedo is undergoing major changes. To report any problems viewing the videos please email us and include browser and OS specifics. Cheers - Kyran.)

This video demonstrates the usage of a multi-threaded chat server and associated client. This video shows how they are both started and used and discusses some chat application layer control (protocol) messages, which the client might be to send to the server.

A suggestion is made for a short programming project to add an additional feature to the server. This "assignment" is actually pretty simple, but it will spur the viewer to take a closer look at some interesting issues related to network programming with sockets, multi-threaded programming and the associated solution to a fairly complex synchronization problem (readers and writers problem).

The client program is implemented using wxPython, so reviewing the source code of it may help someone wanting try some new things with wxPython. wxPython code must all run from within the same thread, but as is explained in a follow-up video, wxPython has some hooks which allow other threads to alert and send data to the thread which controls the graphical environment.

Follow-up videos will provide a code walk through of the client program and the server program. All of the source code for this project is available on my online Network Programming Study Guide.

Here is a link to the specific page in the Study Guide where all the source code can be downloaded from.

Video Tutorials related by tag:

wxpython sockets python networkprogramming multi-threaded chat GUI

Got any questions?

Get answers in the ShowMeDo Learners Google Group.

Video statistics:

  • Video's rank shown in the most popular listing
  • Video plays: 231 (since July 30th)
  • Plays in last week: 13
  • Published: 6 months ago

Thank-yous, questions and comments

If this video tutorial was helpful please take some time to say thank-you to the authors for their hard work. Feel free to ask questions. Let the author know why their video tutorial was useful - what are you learning about? Did the video tutorial save you time? Would you like to see more?

You may also want to see our ShowMeDo Google Group to speak to our active users and authors.

Please provide your email address (won't be published)

9. anonymous Thu, 29 Oct 2009 06:04

great, thank you


Good video, thank you for making it.

suggestion: move the mouse more at the beginning, because i could hear your voice but was not sure that the video was working for the first few seconds.


7. anonymous Sat, 08 Aug 2009 17:50

Good introduction


6. anonymous Sat, 18 Jul 2009 20:32

Hi Tim you have done a great job with what you are teaching. I have learned a lot from this video. Keep up the good work my friend.


Good point about the source code. The ShowMeDo video page only shows one file and this demo is showing 2 programs (client and server). The video showing the server code walk through shows the source code, but the client has three files. I show a link to the Network Programming Study Guide, which has all of the source code available for download. I will add a link to the specific page in the study guide that has the source code.


4. anonymous Sat, 18 Jul 2009 07:34

where is the source code , you should showed the source code at the same time and high light what is going on both the source code and the program?


Thanks for the kind words. The showMeDo videos on wxPython that you and Ian did were quite helpful when working on the client program.


Great stuff! Very smooth screencast - nice pacing, and I'm left eagerly anticipating seeing how the chat-system is put together. This sort of stuff is pure gold for budding programmers I think. Small, but not trivial, projects explained by their creators.

Sorry for the delay in publishing - I've just moved country to sunny Lisbon and am settling in. You're good to self-publish now and welcome to Showmedo. I'll be blogging about this later in the week. As I wrote, great material for a screencast set.


Kudos and Thanks for Tim

Learn Python the easy way!
If you want to learn the Python programming language from a very gentle start or are looking to increase your ability to do cool things with Python, check out our club
View this series as a one-page learning-path
This feature is for club members. Click here to find out more.
Your email address will not be published.

Show some quick comments >>








By the Same Author

Tim Bower Videos related to the production of educational screencast video.
Tim Bower Videos about how to use Unix / Linux. Emphasis will be on entering commands at the shell [...]