diff options
| author | John Wiseman <john.wiseman@cantab.net> | 2022-08-28 09:35:46 +0100 |
|---|---|---|
| committer | John Wiseman <john.wiseman@cantab.net> | 2022-08-28 09:35:46 +0100 |
| commit | e3ea58d23aae3aca6f382c4b95ec31a1f7875cae (patch) | |
| tree | 6aa82a196df5ce3330d112e047febc348c44dc1d /httpconnectioninfo.h | |
23.186.0.23.18
Diffstat (limited to 'httpconnectioninfo.h')
| -rw-r--r-- | httpconnectioninfo.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/httpconnectioninfo.h b/httpconnectioninfo.h new file mode 100644 index 0000000..081a855 --- /dev/null +++ b/httpconnectioninfo.h @@ -0,0 +1,43 @@ +//
+// HTTP Session Control. Used In Kernel HTTPCode, BBSHTMLConfig
+// and ChatHTMLConfig
+
+// On Windows ghanges 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
+ BOOL Connected;
+ // 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
+ time_t WebMailLastUsed;
+ struct TNCINFO * TNC; // Session -> TNC link
+};
|
