コード例 #1
0
ファイル: _newtls.py プロジェクト: 0004c/VTK
 def write(self, bytes):
     """
     Write some bytes to this connection, passing them through a TLS layer if
     necessary, or discarding them if the connection has already been lost.
     """
     if self.TLS:
         if self.connected:
             self.protocol.write(bytes)
     else:
         FileDescriptor.write(self, bytes)
コード例 #2
0
 def write(self, bytes):
     """
     Write some bytes to this connection, passing them through a TLS layer if
     necessary, or discarding them if the connection has already been lost.
     """
     if self.TLS:
         if self.connected:
             self.protocol.write(bytes)
     else:
         FileDescriptor.write(self, bytes)
コード例 #3
0
 def write(self, bytes):
     """
     Write some bytes to this connection, passing them through a TLS layer if
     necessary, or discarding them if the connection has already been lost.
     """
     if self.TLS:
         if self.connected:
             self.protocol.write(bytes)
     elif self._tlsWaiting is not None:
         self._tlsWaiting.bufferedData.append(bytes)
     else:
         FileDescriptor.write(self, bytes)
コード例 #4
0
ファイル: _newtls.py プロジェクト: Juxi/OpenSignals
 def write(self, bytes):
     """
     Write some bytes to this connection, passing them through a TLS layer if
     necessary, or discarding them if the connection has already been lost.
     """
     if self.TLS:
         if self.connected:
             self.protocol.write(bytes)
     elif self._tlsWaiting is not None:
         self._tlsWaiting.bufferedData.append(bytes)
     else:
         FileDescriptor.write(self, bytes)
コード例 #5
0
ファイル: _oldtls.py プロジェクト: antong/twisted
 def write(self, bytes):
     if self._tlsWaiting is not None:
         self._tlsWaiting.bufferedData.append(bytes)
     else:
         FileDescriptor.write(self, bytes)
コード例 #6
0
ファイル: _oldtls.py プロジェクト: debedb/kupuestra2
 def write(self, bytes):
     if self._tlsWaiting is not None:
         self._tlsWaiting.bufferedData.append(bytes)
     else:
         FileDescriptor.write(self, bytes)
コード例 #7
0
ファイル: device.py プロジェクト: buben19/twistedinput
 def write(self, data):
     if self.reading:
         self.backToReading = True
     self.stopReading()
     FileDescriptor.write(self, data)
コード例 #8
0
 def write(self, data):
     if self.reading:
         self.backToReading = True
     self.stopReading()
     FileDescriptor.write(self, data)