GNUnet  0.20.0
TestPublishOperation Struct Reference

Handle for a publishing operation started for testing FS. More...

Collaboration diagram for TestPublishOperation:
[legend]

Data Fields

struct GNUNET_TESTBED_Operationfs_op
 Handle for the operation to connect to the peer's 'fs' service. More...
 
struct GNUNET_FS_Handlefs
 Handle to the file sharing context using this daemon. More...
 
GNUNET_FS_TEST_UriContinuation publish_cont
 Function to call when upload is done. More...
 
void * publish_cont_cls
 Closure for publish_cont. More...
 
struct GNUNET_SCHEDULER_Taskpublish_timeout_task
 Task to abort publishing (timeout). More...
 
uint32_t publish_seed
 Seed for file generation. More...
 
struct GNUNET_FS_PublishContextpublish_context
 Context for current publishing operation. More...
 
struct GNUNET_FS_Uripublish_uri
 Result URI. More...
 
char * publish_tmp_file
 Name of the temporary file used, or NULL for none. More...
 
uint64_t size
 Size of the file. More...
 
uint32_t anonymity
 Anonymity level used. More...
 
unsigned int verbose
 Verbosity level of the current operation. More...
 
int do_index
 Are we testing indexing? (YES: index, NO: insert, SYSERR: simulate) More...
 

Detailed Description

Handle for a publishing operation started for testing FS.

Definition at line 40 of file fs_test_lib.c.

Field Documentation

◆ fs_op

struct GNUNET_TESTBED_Operation* TestPublishOperation::fs_op

Handle for the operation to connect to the peer's 'fs' service.

Definition at line 45 of file fs_test_lib.c.

Referenced by GNUNET_FS_TEST_publish(), publish_fs_connect_complete_cb(), publish_timeout(), and report_uri().

◆ fs

struct GNUNET_FS_Handle* TestPublishOperation::fs

Handle to the file sharing context using this daemon.

Definition at line 50 of file fs_test_lib.c.

Referenced by publish_fs_connect_complete_cb().

◆ publish_cont

GNUNET_FS_TEST_UriContinuation TestPublishOperation::publish_cont

Function to call when upload is done.

Definition at line 55 of file fs_test_lib.c.

Referenced by GNUNET_FS_TEST_publish(), publish_fs_connect_complete_cb(), publish_timeout(), and report_uri().

◆ publish_cont_cls

void* TestPublishOperation::publish_cont_cls

Closure for publish_cont.

Definition at line 60 of file fs_test_lib.c.

Referenced by GNUNET_FS_TEST_publish(), publish_fs_connect_complete_cb(), publish_timeout(), and report_uri().

◆ publish_timeout_task

struct GNUNET_SCHEDULER_Task* TestPublishOperation::publish_timeout_task

Task to abort publishing (timeout).

Definition at line 65 of file fs_test_lib.c.

Referenced by GNUNET_FS_TEST_publish(), publish_progress_cb(), and publish_timeout().

◆ publish_seed

uint32_t TestPublishOperation::publish_seed

Seed for file generation.

Definition at line 70 of file fs_test_lib.c.

Referenced by file_generator(), GNUNET_FS_TEST_publish(), and publish_fs_connect_complete_cb().

◆ publish_context

struct GNUNET_FS_PublishContext* TestPublishOperation::publish_context

Context for current publishing operation.

Definition at line 75 of file fs_test_lib.c.

Referenced by publish_fs_connect_complete_cb(), publish_timeout(), and report_uri().

◆ publish_uri

struct GNUNET_FS_Uri* TestPublishOperation::publish_uri

Result URI.

Definition at line 80 of file fs_test_lib.c.

Referenced by publish_progress_cb(), and report_uri().

◆ publish_tmp_file

char* TestPublishOperation::publish_tmp_file

Name of the temporary file used, or NULL for none.

Definition at line 85 of file fs_test_lib.c.

Referenced by publish_fs_connect_complete_cb(), publish_timeout(), and report_uri().

◆ size

uint64_t TestPublishOperation::size

Size of the file.

Definition at line 90 of file fs_test_lib.c.

Referenced by GNUNET_FS_TEST_publish(), and publish_fs_connect_complete_cb().

◆ anonymity

uint32_t TestPublishOperation::anonymity

Anonymity level used.

Definition at line 95 of file fs_test_lib.c.

Referenced by GNUNET_FS_TEST_publish(), and publish_fs_connect_complete_cb().

◆ verbose

unsigned int TestPublishOperation::verbose

Verbosity level of the current operation.

Definition at line 100 of file fs_test_lib.c.

Referenced by GNUNET_FS_TEST_publish(), gnunet_testing.Test::p(), and publish_progress_cb().

◆ do_index

int TestPublishOperation::do_index

Are we testing indexing? (YES: index, NO: insert, SYSERR: simulate)

Definition at line 105 of file fs_test_lib.c.

Referenced by GNUNET_FS_TEST_publish(), publish_fs_connect_complete_cb(), and report_uri().


The documentation for this struct was generated from the following file: