Return to proto.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / ansh / inc |
new features:: - reordering instructions in clients - add sequence number in ansh protocol - detect lost packets
/************************************************************************* * (C) 2011 AITNET - Sofia/Bulgaria - <office@aitnet.org> * by Michael Pounov <misho@elwix.org> * * $Author: misho $ * $Id: proto.h,v 1.1.1.1.2.2 2011/10/13 14:29:30 misho Exp $ * *************************************************************************/ #ifndef __PROTO_H #define __PROTO_H #define ANSH_CODE 42 #define ANSH_VERSION 1 #define ANSH_ID 0x4224 #define ANSH_FLG_ERR -1 #define ANSH_FLG_OK 0 #define ANSH_FLG_EOF 1 #define ANSH_FLG_CPOUT 2 #define ANSH_FLG_WINZ 3 #define ANSH_FLG_GET(x) ((x) & 0xf) struct ansh_hdr { uint8_t ansh_ver; int8_t ansh_flg; uint16_t ansh_len; uint32_t ansh_nonce; uint32_t ansh_seq; uint32_t ansh_crc; } __attribute__((packed)); #endif