January 2002
Beginner
480 pages
13h 15m
English
Most of the main part of the script is the same as the nonsensitive version from Section 8.1: reading in the notification message, preparing a connection to the Jabber server, and trying to connect:
for line in sys.stdin.readlines(): message = message + line
con = jabber.Client(host=Server)
try:
con.connect()
except IOError, e:
print "Couldn't connect: %s" % e
sys.exit(0)
con.auth(Username,Password,Resource)
Read now
Unlock full access