Codebase list sidguesser / d0734ec1-0c59-486a-b197-2c312b18fe4b/main tns.h
d0734ec1-0c59-486a-b197-2c312b18fe4b/main

Tree @d0734ec1-0c59-486a-b197-2c312b18fe4b/main (Download .tar.gz)

tns.h @d0734ec1-0c59-486a-b197-2c312b18fe4b/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