Line data Source code
1 : #ifndef HEADER_fd_src_discof_ipecho_fd_ipecho_client_h 2 : #define HEADER_fd_src_discof_ipecho_fd_ipecho_client_h 3 : 4 : #include "../../util/net/fd_net_headers.h" 5 : 6 0 : #define FD_IPECHO_CLIENT_ALIGN 8UL 7 : 8 0 : #define FD_IPECHO_CLIENT_MAGIC (0xF17EDA2CE518EC80) /* FIREDANCER IPECHO V0 */ 9 : 10 : struct fd_ipecho_client_private; 11 : typedef struct fd_ipecho_client_private fd_ipecho_client_t; 12 : 13 : FD_FN_CONST ulong 14 : fd_ipecho_client_align( void ); 15 : 16 : FD_FN_CONST ulong 17 : fd_ipecho_client_footprint( void ); 18 : 19 : void * 20 : fd_ipecho_client_new( void * shmem ); 21 : 22 : fd_ipecho_client_t * 23 : fd_ipecho_client_join( void * shipe ); 24 : 25 : void 26 : fd_ipecho_client_init( fd_ipecho_client_t * client, 27 : fd_ip4_port_t const * servers, 28 : ulong servers_len ); 29 : 30 : int 31 : fd_ipecho_client_poll( fd_ipecho_client_t * client, 32 : ushort * shred_version, 33 : int * charge_busy ); 34 : 35 : #endif