[Tutor] socket programming

Mando Escamilla mando@mando.org
Mon, 21 Jan 2002 12:45:04 -0500


Try this:

While 1:
  a = socketthing.recv(1024)
  if a == "Dead Parrot":
    sockettthing.send("It's Dead\0")
				        ^^		
  else:
     socketthing.send("Silly\0")
				    ^^ 	


Honestly, I've long since forgotten why that works.  Maybe someone else
here can explain.

--
Mando