<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I am trying to create a chat program.(Programs are attached)<br>
Please find the code below, where I am having the problem.<br>
<br>
<font color="#3333ff">def run( self ):<br>
while 1:<br>
print "Hello There !!!!"<br>
print self.descriptors<br>
# Await an event on a readable socket descriptor<br>
(sread, swrite, sexc) = select.select( self.descriptors,
[], [] )<br>
print sexc <br>
# Iterate through the tagged read descriptors<br>
print sread<br>
print "Hello There 1 !!!!"<br>
for sock in sread:</font><br>
<br>
<br>
For this I am getting the output as below:<br>
<font color="#cc0000">bash-3.1$ python Server.py<br>
Enter the Port:...9009<br>
ChatServer started on port 9009<br>
Hello There !!!!<br>
[<socket._socketobject object at 0x0000000002487660>]</font><br>
<br>
<br>
But it is not printing the value of sread or "Hello There 1 !!!!!"<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>