def send(self, string, flags=0): err, nbytes = win32file.WriteFile(self._handle, string) return nbytes