summaryrefslogtreecommitdiff
path: root/httpconnectioninfo.h
blob: 3c55e511bb7198a471b5662c71a24e9198a55cda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
//	HTTP Session Control. Used In Kernel HTTPCode, BBSHTMLConfig
//	and ChatHTMLConfig

// On Windows changes to layout or length of this struct require rebuilding BPQ32.dll, BPQMail and BPQChat

struct HTTPConnectionInfo		// Used for Web Server for thread-specific stuff
{
	struct HTTPConnectionInfo * Next;
	struct STATIONRECORD * SelCall;	// Station Record for individual station display
	char Callsign[12];
	int WindDirn, WindSpeed, WindGust, Temp, RainLastHour, RainLastDay, RainToday, Humidity, Pressure; //WX Fields
	char * ScreenLines[100];	// Screen Image for Teminal access mode - max 100 lines (cyclic buffer)
	int ScreenLineLen[100];		// Length of each lime
	int LastLine;				// Pointer to last line of data
	BOOL PartLine;				// Last line does not have CR on end
	char HTTPCall[10];			// Call of HTTP user
	BOOL Changed;				// Changed since last poll. If set, reply immediately, else set timer and wait
	SOCKET sock;				// Socket for pending send
	int ResponseTimer;			// Timer for delayed response
	int KillTimer;				// Clean up timer (no activity timeout)
	int Stream;					// BPQ Stream Number
	char Key[20];				// Session Key
	uint8_t WebsockTerm;		// Set if Term Session is using Websocks
	uint8_t Spare1;
	uint8_t Spare2;
	uint8_t Spare3;

	// Use by Mail Module
#ifdef MAIL
	struct UserInfo * User;		// Selected User
	struct MsgInfo * Msg;		// Selected Message
	WPRec * WP;					// Selected WP record
	WebMailInfo * WebMail;		// Webmail Forms Info
#else
	VOID * User;				// Selected User
	VOID * Msg;					// Selected Message
	VOID * WP;					// Selected WP record
	VOID * WebMail;				// Webmail Forms Info
#endif
	struct UserRec * USER;		// Telnet Server USER record
	int WebMailSkip;			// Number to skip at start of list (for paging)
	char WebMailTypes[4];		// Types To List
	BOOL WebMailMine;			// List all meessage to or from me
	BOOL WebMailMyTX;			// List all meessage from me
	BOOL WebMailMyRX;			// List all meessage to me
	time_t WebMailLastUsed;
	struct ConnectionInfo * sockptr;
	struct TNCINFO * TNC;		// Session -> TNC link
};