/********************************************************************************************************************************/ /* Created: 8-Apr-2010 11:27:49 by OpenVMS SDL EV2-3 */ /* Source: 01-APR-2010 18:43:52 $1$DGA712:[LAISHEV.WORK.RETRACKER]BTDEF.SDL;22 */ /********************************************************************************************************************************/ /*** MODULE BTDEF IDENT BTDEF-1-X ***/ #ifndef __BTDEF_LOADED #define __BTDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /*++ */ /* */ /* Facility: */ /* biTorrent Retracker data structures and definitions. */ /* */ /* Abstract: */ /* This is an interface module contains data structures definitions, */ /* constants, functions/procedures prototypes. */ /* */ /* Author: */ /* Ruslan R. Laishev */ /* */ /* Creation Date: 31-MAR-2010 */ /* */ /* Modification History: */ /* */ /*-- */ #define BT$K_POS0 0 #define BT$K_KSZ0 27 #define BT$K_POS1 27 #define BT$K_KSZ1 8 #define BT$K_RSZ 35 #ifdef __NEW_STARLET typedef struct _bt_rec { unsigned char bt$b_hash [20]; unsigned char bt$b_lim; __struct { unsigned int bt$l_ip; unsigned short int bt$w_port; } bt$r_sock; unsigned __int64 bt$q_updtm; } BT_REC; #if !defined(__VAXC) #define bt$l_ip bt$r_sock.bt$l_ip #define bt$w_port bt$r_sock.bt$w_port #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct bt_rec { unsigned char bt$b_hash [20]; unsigned char bt$b_lim; __struct { unsigned int bt$l_ip; unsigned short int bt$w_port; } bt$r_sock; unsigned int bt$q_updtm [2]; } ; #if !defined(__VAXC) #define bt$l_ip bt$r_sock.bt$l_ip #define bt$w_port bt$r_sock.bt$w_port #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __BTDEF_LOADED */