Codebase list sidguesser / 806be0e7-8df9-4e68-83b1-179ff6147509/main tns.h
806be0e7-8df9-4e68-83b1-179ff6147509/main

Tree @806be0e7-8df9-4e68-83b1-179ff6147509/main (Download .tar.gz)

tns.h @806be0e7-8df9-4e68-83b1-179ff6147509/mainraw · history · blame

#ifdef WIN32
#pragma pack( push, 1 )
#endif

#ifndef byte
typedef unsigned char byte;
#endif

struct tTNS_Header {

	short nPacketLen;
	short nPacketCSum;
	byte nPacketType; /* CONNECT */
	byte nReserved;
	short nHeaderCSum;
	short nVersion;
	short nVCompat;
	short nSOptions;
	short nUnitSize;
	short nMaxUSize;
	short nProtoC;
	short nLineTV;
	short nValOf1;
	short nLenOfCD;/* Length of connect data */
	short nOffCD;/* offset of connect data */
	int nMaxRecvData;
	byte bFlags0;
	byte bFlags1;
#ifdef WIN32
};
#else
} __attribute__ ((packed)) ;
#endif