[Tutor] sockets
Brendon
bren@europe.nl.com
Mon, 2 Jul 2001 20:52:25 +0200
with the following code:
import sys
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
loginPacket = '<?xml version="1.0" encoding="UTF-8" ?><stream:stream
to="jabber.org" xmlns="jabber:client"
xmlns:stream="http://etherx.jabber.org/streams">'
s.send(loginPacket)
data = s.recv(1024)
s.close()
print "Recieved", data
----
i get the error message: s.send(loginPacket) socket.error: (32, 'Broken
pipe'). any clue what i'm doing wrong?
--
"if we live by an "eye for an eye and a tooth for a tooth"...before long,
the whole world will be blind and toothless."
--Tevye, Fiddler on the Roof