Line data Source code
1 : #ifndef HEADER_fd_src_discof_restore_utils_fd_sshttp_h 2 : #define HEADER_fd_src_discof_restore_utils_fd_sshttp_h 3 : 4 : struct fd_sshttp_private; 5 : typedef struct fd_sshttp_private fd_sshttp_t; 6 : 7 : #include "../../../util/net/fd_net_headers.h" 8 : 9 : FD_PROTOTYPES_BEGIN 10 : 11 : FD_FN_CONST ulong 12 : fd_sshttp_align( void ); 13 : 14 : FD_FN_CONST ulong 15 : fd_sshttp_footprint( void ); 16 : 17 : void * 18 : fd_sshttp_new( void * shmem ); 19 : 20 : fd_sshttp_t * 21 : fd_sshttp_join( void * sshttp ); 22 : 23 : char const * 24 : fd_sshttp_snapshot_name( fd_sshttp_t const * http ); 25 : 26 : ulong 27 : fd_sshttp_content_len( fd_sshttp_t const * http ); 28 : 29 : void 30 : fd_sshttp_init( fd_sshttp_t * http, 31 : fd_ip4_port_t addr, 32 : char const * hostname, 33 : int is_https, 34 : char const * path, 35 : ulong path_len, 36 : long now ); 37 : 38 : void 39 : fd_sshttp_cancel( fd_sshttp_t * http ); 40 : 41 0 : #define FD_SSHTTP_ADVANCE_ERROR (-1) 42 0 : #define FD_SSHTTP_ADVANCE_AGAIN ( 0) 43 0 : #define FD_SSHTTP_ADVANCE_DATA ( 1) 44 0 : #define FD_SSHTTP_ADVANCE_DONE ( 2) 45 : 46 : int 47 : fd_sshttp_advance( fd_sshttp_t * http, 48 : ulong * data_len, 49 : uchar * data, 50 : long now ); 51 : 52 : FD_PROTOTYPES_END 53 : 54 : #endif /* HEADER_fd_src_discof_restore_utils_fd_sshttp_h */