Annotation of mstools/samples/nwlink/testlib/testlib.h, revision 1.1

1.1     ! root        1: /*
        !             2: *   Globals for test programs 
        !             3: */
        !             4: 
        !             5: extern int     verbose;    
        !             6: extern int     Socket_Type;
        !             7: extern int     Protocol;
        !             8: extern int     Sleep_Time;
        !             9: extern int     Backlog;
        !            10: extern int     No_Broadcast;
        !            11: extern int     No_Loop;
        !            12: extern int     Send_Length;
        !            13: extern int     Receive_Length;
        !            14: extern int     Local_Packet_Type;
        !            15: extern int     Send_Packet_Type;
        !            16: extern int     Filter_Packet_Type;
        !            17: extern int     Local_Address_Family;
        !            18: extern int     Remote_Address_Family;
        !            19: extern char    Local_Network_Number[];
        !            20: extern char    Local_Node_Number[];
        !            21: extern char    Local_Socket_Number[];
        !            22: extern char    Remote_Network_Number[];
        !            23: extern char    Remote_Node_Number[];
        !            24: extern char    Remote_Socket_Number[];
        !            25:  
        !            26: /* 
        !            27: *    Command line and network address print functions
        !            28: */
        !            29: 
        !            30:  /*   Parses command line and fills in above global variables  */
        !            31: extern void parse_cmd_line(int, char **);
        !            32: 
        !            33:  /*   Prints full network address (network, node, and socket)  */
        !            34: extern void print_netaddr(LPSTR, LPSTR, LPSTR);
        !            35: 
        !            36:  /*   Prints first 4 bytes of address passed in  */
        !            37: extern void print_network_num(LPSTR);
        !            38: 
        !            39:  /*   Prints first 6 bytes of address passed in */
        !            40: extern void print_node_num(LPSTR);
        !            41: 
        !            42:  /*   Prints first 2 bytes of address passed in */
        !            43: extern void print_socket_num(LPSTR);
        !            44:  
        !            45:  /*   Prints contents of a SOCKADDR_IPX struct */
        !            46: extern void print_saddr(PSOCKADDR_IPX);
        !            47: 
        !            48:  /*   Prints contents of a WSAData struct */
        !            49: extern void print_wsa(LPWSADATA);
        !            50: 
        !            51: 
        !            52: /* 
        !            53: *    Error print functions 
        !            54: */
        !            55: 
        !            56:  /*   Returns string with passed in string + description of last h_errno */
        !            57: extern LPCSTR dos_net_strerror(LPSTR);
        !            58: 
        !            59:  /* Prints given string followed by description of last h_errno to stdout */
        !            60: extern void  dos_net_perror(LPSTR);
        !            61: 
        !            62:  /* Displays message box with given string followed by description of
        !            63:  *   last h_errno.  Allows user to specify if messagebox should be 
        !            64:  *   task modal (last param should be 1 if so)
        !            65:  */
        !            66: extern void win_net_perror(HWND, LPSTR, int);
        !            67: 
        !            68:  /* Given h_errno, returns descriptive text */
        !            69: extern LPCSTR get_error_text(int);
        !            70: 
        !            71:  /* Makes sure that a buffer is filled with only the character specified. */
        !            72: extern int mem_check(LPSTR, UCHAR, int);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.