#ifndef _LB_H_2f8bc9b5_ #define _LB_H_2f8bc9b5_ /* This file is in the public domain. */ /* Version announcement intro. */ #define LB_VERSION 0x00 #define CURRENT_VERSION 2 /* 0x20-0x3f are client->server only */ #define LB_DATA 0x20 #define LB_RQSUMS 0x21 #define LB_STOPSUM 0x22 #define LB_SIZE 0x23 #define LB_STATUS 0x24 /* 0x40-0x5f are server->client only */ #define LB_SUMS 0x40 #define LB_ABORTED 0x41 /* 0x6f-0x7f are either direction */ #define LB_PING 0x60 #define LB_PONG 0x61 #define LB_CAP 0x62 #define LB_CAP_QUERY 0x00 #define LB_CAP_NEGATIVE 0x01 #define LB_CAP_POSITIVE 0x02 /* 0x80-0xbf are dynamically allocated with LB_CAP */ #define LB__DYN_FIRST 0x80 #define LB__DYN_LAST 0xbf #define LB__DYN_N (1+LB__DYN_LAST-LB__DYN_FIRST) /* Checksum type bytes */ #define CKT_SHA1 0x00 extern const char *msg_name(int); extern const char *cksum_name(int); #endif