def write(self, data): """ Write DATA to the underlying secure channel. Returns number of bytes of DATA actually transmitted. """ self._check_closed("write") self._check_connected() data = t2b(data) return _lib.wolfSSL_write(self.native_object, data, len(data))
def write(self, data): """ Write DATA to the underlying secure channel. Returns number of bytes of DATA actually transmitted. """ self._check_closed("write") self._check_connected() data = t2b(data) return _lib.wolfSSL_write(self.native_object, data, len(data))