Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Help with Sockets.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gabriel Genellina  
View profile  
 More options Jul 6, 2:10 am
Newsgroups: comp.lang.python
From: "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
Date: Mon, 06 Jul 2009 03:10:25 -0300
Local: Mon, Jul 6 2009 2:10 am
Subject: Re: Help with Sockets.
En Sun, 05 Jul 2009 23:06:30 -0300, tanner barnes <tanner...@hotmail.com>  
escribió:

> I am writing a program and in one section there is going to be a lobby  
> with (for testing purposes) about 4 people in it. in the lobby there are  
> two txtctrl's the first for entering your message and the second for  
> displaying the message you and the other people in the lobby type. i am  
> trying to figure out how to get all the text entrys from the users and  
> display them in the second one. For clarification and example of what i  
> want would be like yahoo or windows live messanger but for more than 2  
> people.

Like a chat room, IRC?
It's easy to do using a client-server architecture.
Make all the clients connect to a central server. Any time someone writes  
some text, the client sends it to the server (but does not display it).  
The server just receives text from any client, and sends the received  
messages to all connected clients (including the one that sent it  
originally).
Any book on socket programming will help; there are a few specific for  
Python.
You may start with the "echo" example in the Python documentation. Make  
the networking part work first, then add the wx GUI if you want.

--
Gabriel Genellina


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google