In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] wrote:

>databack = sockobj.recv(1028)
>if databack:
>       print 'caught a message %s bytes ' % len(databack)
>else:
>       print 'fail to recieve data from server'
>
>the output in the terminal runs fine until it fails to get the
>databack, it prints out the "fail to receive from server" bit.

Perhaps the string you are receiving back on the second recv is being 
interpreted as False.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to