need help with recieving sockets

Andrew nobody at user.com
Sun Dec 18 20:19:35 EST 2005


Hi I was wondering if any one could help me with a chat client I am 
writing my main issue is not in the sending of messages or in the 
connection setting.

I am having issues receiving the messages. I am using Tkinter as the GUI 
and Python 2.3.5

my code has been edited so many times but no matter what I do everytime 
I click my recieve button the client crashes and Tkinter freezes up and 
I don't recieve the message back from the server.

Does anyone have any ideas what I am doing wrong

here is the latest function I am using:


def recv_basic():
     textbox.insert(END, sock.recv(1024))
     textbox.insert(END, "\n\n")

on a side note I can get the first connection message back from the 
server if I click the recieve button. Another side note I have tried two 
different servers one I wrote and another one I found in a tutorial

Cheers and thanks for any help



More information about the Python-list mailing list