mirror of
https://github.com/sheumann/NetDisk.git
synced 2024-09-27 12:57:51 +00:00
35 lines
794 B
C
35 lines
794 B
C
|
#ifndef SESSION_H
|
||
|
#define SESSION_H
|
||
|
|
||
|
#include <types.h>
|
||
|
|
||
|
typedef struct Session {
|
||
|
/* Marinetti TCP connection status */
|
||
|
Word ipid;
|
||
|
Boolean tcpLoggedIn;
|
||
|
|
||
|
/* ReadTCP status */
|
||
|
LongWord readCount;
|
||
|
Byte *readPtr;
|
||
|
|
||
|
/* Marinetti error codes, both the tcperr* value and any tool error */
|
||
|
Word tcperr;
|
||
|
Word toolerr;
|
||
|
|
||
|
/* HTTP request to send (if non-NULL, points to malloc'd buffer) */
|
||
|
char *httpRequest;
|
||
|
/* Pointer to the range part within httpRequest */
|
||
|
char *httpRequestRange;
|
||
|
|
||
|
/* IP address and TCP port of host */
|
||
|
LongWord ipAddr;
|
||
|
Word port;
|
||
|
|
||
|
/* Domain name of host (p-string; empty string for host specified by IP) */
|
||
|
char domainName[256];
|
||
|
/* Time (GetTick) of last DNS lookup */
|
||
|
LongWord dnsTime;
|
||
|
} Session;
|
||
|
|
||
|
#endif
|