--- libaitsess/inc/defs.h 2011/09/07 13:11:55 1.3 +++ libaitsess/inc/defs.h 2012/05/23 10:53:18 1.5.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.3 2011/09/07 13:11:55 misho Exp $ +* $Id: defs.h,v 1.5.2.1 2012/05/23 10:53:18 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 +Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -48,8 +48,10 @@ SUCH DAMAGE. #define STRSIZ 256 +#define SESS_AIT_MAGIC 0x3CC3 + #define MEM_MODE 0640 -#define MEM_DELIM ":" +#define MEM_DELIM "\xFF" #define LOGERR { \ sess_Errno = errno; \ @@ -70,6 +72,11 @@ union semun { unsigned short *array; /* array for GETALL & SETALL */ }; #endif + +typedef struct _tagSessHdr { + uint16_t hdr_magic; + uint16_t hdr_argc; +} sess_hdr_t; extern int sess_Errno;