示例#1
0
 def writeSomeData(self, data):
     """
     Write some data to the open process.
     """
     rv = fdesc.writeToFD(self.fd, data)
     if rv == len(data) and self.enableReadHack:
         # If the send buffer is now empty and it is necessary to monitor
         # this descriptor for readability to detect close, try detecting
         # readability now.
         self.startReading()
     return rv
示例#2
0
 def writeSomeData(self, data):
     """
     Write some data to the open process.
     """
     rv = fdesc.writeToFD(self.fd, data)
     if rv == len(data) and self.enableReadHack:
         # If the send buffer is now empty and it is necessary to monitor
         # this descriptor for readability to detect close, try detecting
         # readability now.
         self.startReading()
     return rv
示例#3
0
 def writeSomeData(self, data):
     """
     Write some data to the open process.
     """
     return fdesc.writeToFD(self.fd, data)
示例#4
0
 def writeSomeData(self, data):
     """
     Write some data to the open process.
     """
     return fdesc.writeToFD(self.fd, data)
 def writeSomeData(self, data):
     """
     Write some data to the serial device.
     """
     return fdesc.writeToFD(self.fileno(), data)