DebugClients/Python/AsyncFile.py

changeset 111
1887e3af7b74
parent 13
1af94a91f439
child 790
2c0ea0163ef4
child 792
a13346916170
equal deleted inserted replaced
110:c9a969db1469 111:1887e3af7b74
122 """ 122 """
123 Public method returning the file number. 123 Public method returning the file number.
124 124
125 @return file number (int) 125 @return file number (int)
126 """ 126 """
127 return self.sock.fileno() 127 try:
128 return self.sock.fileno()
129 except socket.error:
130 return -1
128 131
129 def read_p(self,size=-1): 132 def read_p(self,size=-1):
130 """ 133 """
131 Public method to read bytes from this file. 134 Public method to read bytes from this file.
132 135

eric ide

mercurial