linbpq/httpconnectioninfo.h

44 lines
1.8 KiB
C

//
// 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
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
};