예제 #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)
예제 #5
0
 def writeSomeData(self, data):
     """
     Write some data to the serial device.
     """
     return fdesc.writeToFD(self.fileno(), data)