Home » Personal collection » Acorn hard disk » apps » web » !ArcWeb/h/requester

!ArcWeb/h/requester

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » apps » web
Filename: !ArcWeb/h/requester
Read OK:
File size: 2F6F bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
/*
 * ArcWeb
 *
 * Copyright (C) Stewart Brodie, 1994, 1995, 1996, 1997
 *
 * This product is supplied under the terms laid down in the `Terms' file.
 *
 * This file may be distributed freely with any ArcWeb related software,
 * provided it meets with the definition of 'free' in the 'Terms' file.
 *
 * This file: requester.h
 *
 *   A WIMP-library-independent interface definition.  All structures are
 *   defined in terms of basic types.
 *
 * Last changes: for ArcWeb 1.77 - new flags.
 *
 */
#ifndef _requester_h_included
#define _requester_h_included
#ifdef __cplusplus
extern "C" {
#endif

#define arcweb_MAXURL           (200)


#define msg_Arcweb__base        (0x4A240)
#define msg_Arcweb__last	(msg_Arcweb__base + 0x3f)
#define swi_Arcweb__base        (msg_Arcweb__base)
#define err_Arcweb__base        (0x80D200)

typedef enum {

        Message_ArcwebFetchRequest    = (msg_Arcweb__base +  0),
        Message_ArcwebFetchDone       = (msg_Arcweb__base +  1),
        Message_ArcwebRenderRequest   = (msg_Arcweb__base +  2),
        Message_ArcwebRenderDone      = (msg_Arcweb__base +  3),
        Message_ArcwebPostRequest     = (msg_Arcweb__base +  4),
        Message_ArcwebPostDone        = (msg_Arcweb__base +  5),
        Message_ArcwebEMailRequest    = (msg_Arcweb__base +  6),
        Message_ArcwebEMailDone       = (msg_Arcweb__base +  7),

        Message_ArcwebImageSize       = (msg_Arcweb__base + 16),
        Message_ArcwebImageComplete   = (msg_Arcweb__base + 17),
        Message_ArcwebXferControl     = (msg_Arcweb__base + 18),
        Message_ArcwebXferControlAck  = (msg_Arcweb__base + 19),

        Message_ArcwebQuit            = (msg_Arcweb__base + 32),
        Message_ArcwebExpire          = (msg_Arcweb__base + 33),
        Message_ArcwebAbortRequest    = (msg_Arcweb__base + 34),
        Message_ArcwebTransferStatus  = (msg_Arcweb__base + 35),
        Message_ArcwebConfigure       = (msg_Arcweb__base + 36),
        Message_ArcwebExternalLaunch  = (msg_Arcweb__base + 37),
        Message_ArcwebLaunchDone      = (msg_Arcweb__base + 38),
        Message_ArcwebWebBrowser      = (msg_Arcweb__base + 39),
        Message_ArcwebColourSelected  = (msg_Arcweb__base + 40),
        Message_ArcwebPermanentMove   = (msg_Arcweb__base + 41),

        Message_IntertalkRequest      = (0x4AF80)

} arcweb_msgid;


/* Use these constants in the flag words in the messages below */

#define arcweb_FLAGS_error              0x80000000
#define arcweb_FLAGS_typeknown          0x40000000
#define arcweb_FLAGS_inhibit_render     0x20000000
#define arcweb_FLAGS_want_symlink       0x10000000
#define arcweb_FLAGS_url_changed        0x08000000
#define arcweb_FLAGS_close_previous     0x04000000
#define arcweb_FLAGS_image_fetch        0x02000000
#define arcweb_FLAGS_error_handled      0x01000000
#define arcweb_FLAGS_inhibit_display    0x00800000
#define arcweb_FLAGS_extended_url       0x00400000
#define arcweb_FLAGS_email_complete     0x00200000
#define arcweb_FLAGS_reload		0x00100000
#define arcweb_FLAGS_load_to_disc	0x00080000
#define arcweb_FLAGS_forcing_reload	0x00040000
#define arcweb_FLAGS_reserved_mask      0x00020000
#define arcweb_FLAGS_extended_type      0x00010000
#define arcweb_FLAGS_typemask           0x0001ffff
#define arcweb_FLAGS_stream		0x00004000
#define arcweb_FLAGS_rnfr		0x00002000
#define arcweb_FLAGS_dele		0x00001000
#define arcweb_FLAGS_rmdir		0x00000800
#define arcweb_FLAGS_mkdir		0x00000400
#define arcweb_FLAGS_put		0x00000200
#define arcweb_FLAGS_forcing_images	0x00000100
#define arcweb_FLAGS_referer_available	0x00000080
#define arcweb_FLAGS_xfer_control       0x00000020
#define arcweb_FLAGS_images_disabled    0x00000010
#define arcweb_FLAGS_post_was_put       0x00000008
#define arcweb_FLAGS_fast_images	0x00000004
#define arcweb_FLAGS_local_launch	0x00000002
#define arcweb_FLAGS_document_fetch	0x00000000


#define arcweb_XFER_xmit_running        0x00000001
#define arcweb_XFER_recv_running        0x00000002
#define arcweb_XFER_xmit_complete       0x00000004
#define arcweb_XFER_recv_complete       0x00000008
#define arcweb_XFER_misc_running        0x00000010
#define arcweb_XFER_reserved            0xffffffe0


/* Flag bit meanings:
 *
 *  Responses only:
 *      bits 0 to 15    : RISC OS/ArcWeb filetype indicator
 *      bit 16          : if set, type is arcweb_TYPES_*, else RISC OS type
 *
 *  Requests only:
 *      bit  1          : the previous page was a local: URL
 *      bit  2          : if set, 'fast images' are being used - not implemented yet
 *      bit  3          : if set, the POST request should be sent as a PUT instead
 *      bit  4          : if set, user has disabled image fetching
 *      bit  5          : if set, control transfer protocol is available
 *	bit  6		Reserved - must be zero
 *	bit  7		Internal use only - must be zero for non-ArcWeb tasks
 *	bit  8		If set, user has forced image fetching for this fetch
 *	bit  9		If set, user requested a PUT operation
 *	bit  10		If set, user requested the URI be created as a directory
 *	bit  11		If set, user requested the directory URI be deleted
 *	bit  12		If set, user requested deletion of URI
 *	bit  13		If set, user requested rename of URI
 *      bit  14		Reserved - must be zero (or you'll be sorry)
 *
 *  Both:
 *
 *      bits 17 and 18  : reserved (must be preserved in replies)
 *      bit 19          : if set, user has requested a 'load to disc'
 *      bit 20          : if set, this is a reload, so flush any cache
 *      bit 21          : if set, the e-mail message is complete
 *      bit 22          : if set, this is an extended URL
 *      bit 23          : if set, ArcWeb will not display the results of the render
 *      bit 24          : if set, ArcWeb wont raise any error to user
 *      bit 25          : if set, this is an inline image fetch, not a page fetch
 *      bit 26          : if set, the previous ArcWeb window should be closed
 *      bit 27          : if set, URL has been changed (+ is in URL file)
 *      bit 28          : if set, request use of symbolic link in host filesystem
 *      bit 29          : if set, (in FetchDone), ArcWeb will not render it
 *      bit 30          : if set, bits 0-16 are valid, else they are invalid
 *      bit 31          : if set, the buffer contains an error message
 *
 */

typedef struct {
        struct arcweb_msghdr {    /* message block header. */
          int size;               /* 20<=size<=256, multiple of 4 */
          int task;               /* task handle of sender (filled in by wimp) */
          int my_ref;             /* unique ref number (filled in by wimp) */
          int your_ref;           /* (0==>none) if non-zero, acknowledge */
          arcweb_msgid action;    /* message action code */
        } hdr;
        void           *handle;         /* MUST be preserved */
        int             flags;          /* See above */
        union {
                int  _arcweb_words[57]; /* Ensure the right size */
                char _arcweb_data[228]; /* a char version        */

                struct {
                        int     localfile;  /* *RISC OS* file handle */
                        union {
                                int     url_file;            /* if bit 22 set */
                                char    URL[arcweb_MAXURL];  /* if bit 22 clr */
                        } url;
                } fetch_request;

                union {
                        struct {
                                int     use_given_expiry;
                                int     use_default_expiry;
                                char    date[8]; /* to stop Cv5 warnings */
                                int	response_code;
                                char	mime_type[208]; /* MUST start "MIME:" */
                        } expiry;
                        char    error[228];
                } fetch_done;

               struct {
                        int     localfile;
                        int     formfile;
                        union {
                                int     url_file;            /* if bit 22 set */
                                char    URL[arcweb_MAXURL];  /* if bit 22 clr */
                        } url;
                } post_request;

                struct {
                        int     localsrc;
                        int     localtmp;
                        int     localdiag;
                        int     locallink;
                        int     size_in_msg;
                        char    fileheader[228-5*sizeof(int)];
                } render_request;

                union {
                        struct {
                                int x_pix;
                                int y_pix;
                        } size;
                        char    error[228];
                } render_done;

                struct {
                        int     formfile;
                } email_request;

                struct {
                        char    error[228]; /* Do I want this? */
                } email_done;

                struct {
                        union {
                                int  url_file;           /* if bit 22 set   */
                                char URL[arcweb_MAXURL]; /* if bit 22 clear */
                        } url;
                } expire;

                 union {
                        struct {
                                int     use_given_expiry;
                                int     use_default_expiry;
                                char    date[8]; /* to stop Cv5 warnings */
                                int	response_code;
                                char	mime_type[208]; /* MUST start "MIME:" */
                        } expiry;
                        char    error[228];
                } post_done;

                struct {
                        int     flags;
                        int     transmit_total;
                        int     transmit_sofar;
                        int     receive_total;
                        int     receive_sofar;
                        char    message[208];
                } status_report;

                struct {
                        char    reason[228];
                } abort_request;

                struct {
                        int     renderer_handle;
                        int     x_os_units;
                        int     y_os_units;
                } image_size;

                struct {
                        int     renderer_handle;
                } image_complete;

                struct {
                	char	application[228];
                } configure;

                struct {
                        union {
                                int  url_file;           /* if bit 22 set   */
                                char URL[arcweb_MAXURL]; /* if bit 22 clear */
                        } url;
                } launch_request;

                struct {
                        char    error[228];
                } launch_done;

                struct {
                        int     localfile;  /* *RISC OS* file handle */
                        union {
                                int     url_file;            /* if bit 22 set */
                                char    URL[arcweb_MAXURL];  /* if bit 22 clr */
                        } url;
                } xfer_request;

                struct {
                        char    error[228];
                } xfer_request_ack;
                
                struct {
                        char 	browser[228];
                } web_browser;

		struct {
		        int	background;
		        int	normal;
		        int	link;
		        int	vlink;
		        int	alink;
		        int	no_images;
		} colour_selection;
		
		struct {
		        /* NOTE: These pointers are possibly in app w/s */
		        /* Must use Wimp_TransferBlock to get them */
		        const char 	*from;
		        int		fromsize;
		        const char	*to;
		        int		tosize;
		} permanent_move;

        } data;
} arcweb_msg; /* use as a wimp_msgstr */

#ifdef __cplusplus
}
#endif
#endif
00000000  2f 2a 0a 20 2a 20 41 72  63 57 65 62 0a 20 2a 0a  |/*. * ArcWeb. *.|
00000010  20 2a 20 43 6f 70 79 72  69 67 68 74 20 28 43 29  | * Copyright (C)|
00000020  20 53 74 65 77 61 72 74  20 42 72 6f 64 69 65 2c  | Stewart Brodie,|
00000030  20 31 39 39 34 2c 20 31  39 39 35 2c 20 31 39 39  | 1994, 1995, 199|
00000040  36 2c 20 31 39 39 37 0a  20 2a 0a 20 2a 20 54 68  |6, 1997. *. * Th|
00000050  69 73 20 70 72 6f 64 75  63 74 20 69 73 20 73 75  |is product is su|
00000060  70 70 6c 69 65 64 20 75  6e 64 65 72 20 74 68 65  |pplied under the|
00000070  20 74 65 72 6d 73 20 6c  61 69 64 20 64 6f 77 6e  | terms laid down|
00000080  20 69 6e 20 74 68 65 20  60 54 65 72 6d 73 27 20  | in the `Terms' |
00000090  66 69 6c 65 2e 0a 20 2a  0a 20 2a 20 54 68 69 73  |file.. *. * This|
000000a0  20 66 69 6c 65 20 6d 61  79 20 62 65 20 64 69 73  | file may be dis|
000000b0  74 72 69 62 75 74 65 64  20 66 72 65 65 6c 79 20  |tributed freely |
000000c0  77 69 74 68 20 61 6e 79  20 41 72 63 57 65 62 20  |with any ArcWeb |
000000d0  72 65 6c 61 74 65 64 20  73 6f 66 74 77 61 72 65  |related software|
000000e0  2c 0a 20 2a 20 70 72 6f  76 69 64 65 64 20 69 74  |,. * provided it|
000000f0  20 6d 65 65 74 73 20 77  69 74 68 20 74 68 65 20  | meets with the |
00000100  64 65 66 69 6e 69 74 69  6f 6e 20 6f 66 20 27 66  |definition of 'f|
00000110  72 65 65 27 20 69 6e 20  74 68 65 20 27 54 65 72  |ree' in the 'Ter|
00000120  6d 73 27 20 66 69 6c 65  2e 0a 20 2a 0a 20 2a 20  |ms' file.. *. * |
00000130  54 68 69 73 20 66 69 6c  65 3a 20 72 65 71 75 65  |This file: reque|
00000140  73 74 65 72 2e 68 0a 20  2a 0a 20 2a 20 20 20 41  |ster.h. *. *   A|
00000150  20 57 49 4d 50 2d 6c 69  62 72 61 72 79 2d 69 6e  | WIMP-library-in|
00000160  64 65 70 65 6e 64 65 6e  74 20 69 6e 74 65 72 66  |dependent interf|
00000170  61 63 65 20 64 65 66 69  6e 69 74 69 6f 6e 2e 20  |ace definition. |
00000180  20 41 6c 6c 20 73 74 72  75 63 74 75 72 65 73 20  | All structures |
00000190  61 72 65 0a 20 2a 20 20  20 64 65 66 69 6e 65 64  |are. *   defined|
000001a0  20 69 6e 20 74 65 72 6d  73 20 6f 66 20 62 61 73  | in terms of bas|
000001b0  69 63 20 74 79 70 65 73  2e 0a 20 2a 0a 20 2a 20  |ic types.. *. * |
000001c0  4c 61 73 74 20 63 68 61  6e 67 65 73 3a 20 66 6f  |Last changes: fo|
000001d0  72 20 41 72 63 57 65 62  20 31 2e 37 37 20 2d 20  |r ArcWeb 1.77 - |
000001e0  6e 65 77 20 66 6c 61 67  73 2e 0a 20 2a 0a 20 2a  |new flags.. *. *|
000001f0  2f 0a 23 69 66 6e 64 65  66 20 5f 72 65 71 75 65  |/.#ifndef _reque|
00000200  73 74 65 72 5f 68 5f 69  6e 63 6c 75 64 65 64 0a  |ster_h_included.|
00000210  23 64 65 66 69 6e 65 20  5f 72 65 71 75 65 73 74  |#define _request|
00000220  65 72 5f 68 5f 69 6e 63  6c 75 64 65 64 0a 23 69  |er_h_included.#i|
00000230  66 64 65 66 20 5f 5f 63  70 6c 75 73 70 6c 75 73  |fdef __cplusplus|
00000240  0a 65 78 74 65 72 6e 20  22 43 22 20 7b 0a 23 65  |.extern "C" {.#e|
00000250  6e 64 69 66 0a 0a 23 64  65 66 69 6e 65 20 61 72  |ndif..#define ar|
00000260  63 77 65 62 5f 4d 41 58  55 52 4c 20 20 20 20 20  |cweb_MAXURL     |
00000270  20 20 20 20 20 20 28 32  30 30 29 0a 0a 0a 23 64  |      (200)...#d|
00000280  65 66 69 6e 65 20 6d 73  67 5f 41 72 63 77 65 62  |efine msg_Arcweb|
00000290  5f 5f 62 61 73 65 20 20  20 20 20 20 20 20 28 30  |__base        (0|
000002a0  78 34 41 32 34 30 29 0a  23 64 65 66 69 6e 65 20  |x4A240).#define |
000002b0  6d 73 67 5f 41 72 63 77  65 62 5f 5f 6c 61 73 74  |msg_Arcweb__last|
000002c0  09 28 6d 73 67 5f 41 72  63 77 65 62 5f 5f 62 61  |.(msg_Arcweb__ba|
000002d0  73 65 20 2b 20 30 78 33  66 29 0a 23 64 65 66 69  |se + 0x3f).#defi|
000002e0  6e 65 20 73 77 69 5f 41  72 63 77 65 62 5f 5f 62  |ne swi_Arcweb__b|
000002f0  61 73 65 20 20 20 20 20  20 20 20 28 6d 73 67 5f  |ase        (msg_|
00000300  41 72 63 77 65 62 5f 5f  62 61 73 65 29 0a 23 64  |Arcweb__base).#d|
00000310  65 66 69 6e 65 20 65 72  72 5f 41 72 63 77 65 62  |efine err_Arcweb|
00000320  5f 5f 62 61 73 65 20 20  20 20 20 20 20 20 28 30  |__base        (0|
00000330  78 38 30 44 32 30 30 29  0a 0a 74 79 70 65 64 65  |x80D200)..typede|
00000340  66 20 65 6e 75 6d 20 7b  0a 0a 20 20 20 20 20 20  |f enum {..      |
00000350  20 20 4d 65 73 73 61 67  65 5f 41 72 63 77 65 62  |  Message_Arcweb|
00000360  46 65 74 63 68 52 65 71  75 65 73 74 20 20 20 20  |FetchRequest    |
00000370  3d 20 28 6d 73 67 5f 41  72 63 77 65 62 5f 5f 62  |= (msg_Arcweb__b|
00000380  61 73 65 20 2b 20 20 30  29 2c 0a 20 20 20 20 20  |ase +  0),.     |
00000390  20 20 20 4d 65 73 73 61  67 65 5f 41 72 63 77 65  |   Message_Arcwe|
000003a0  62 46 65 74 63 68 44 6f  6e 65 20 20 20 20 20 20  |bFetchDone      |
000003b0  20 3d 20 28 6d 73 67 5f  41 72 63 77 65 62 5f 5f  | = (msg_Arcweb__|
000003c0  62 61 73 65 20 2b 20 20  31 29 2c 0a 20 20 20 20  |base +  1),.    |
000003d0  20 20 20 20 4d 65 73 73  61 67 65 5f 41 72 63 77  |    Message_Arcw|
000003e0  65 62 52 65 6e 64 65 72  52 65 71 75 65 73 74 20  |ebRenderRequest |
000003f0  20 20 3d 20 28 6d 73 67  5f 41 72 63 77 65 62 5f  |  = (msg_Arcweb_|
00000400  5f 62 61 73 65 20 2b 20  20 32 29 2c 0a 20 20 20  |_base +  2),.   |
00000410  20 20 20 20 20 4d 65 73  73 61 67 65 5f 41 72 63  |     Message_Arc|
00000420  77 65 62 52 65 6e 64 65  72 44 6f 6e 65 20 20 20  |webRenderDone   |
00000430  20 20 20 3d 20 28 6d 73  67 5f 41 72 63 77 65 62  |   = (msg_Arcweb|
00000440  5f 5f 62 61 73 65 20 2b  20 20 33 29 2c 0a 20 20  |__base +  3),.  |
00000450  20 20 20 20 20 20 4d 65  73 73 61 67 65 5f 41 72  |      Message_Ar|
00000460  63 77 65 62 50 6f 73 74  52 65 71 75 65 73 74 20  |cwebPostRequest |
00000470  20 20 20 20 3d 20 28 6d  73 67 5f 41 72 63 77 65  |    = (msg_Arcwe|
00000480  62 5f 5f 62 61 73 65 20  2b 20 20 34 29 2c 0a 20  |b__base +  4),. |
00000490  20 20 20 20 20 20 20 4d  65 73 73 61 67 65 5f 41  |       Message_A|
000004a0  72 63 77 65 62 50 6f 73  74 44 6f 6e 65 20 20 20  |rcwebPostDone   |
000004b0  20 20 20 20 20 3d 20 28  6d 73 67 5f 41 72 63 77  |     = (msg_Arcw|
000004c0  65 62 5f 5f 62 61 73 65  20 2b 20 20 35 29 2c 0a  |eb__base +  5),.|
000004d0  20 20 20 20 20 20 20 20  4d 65 73 73 61 67 65 5f  |        Message_|
000004e0  41 72 63 77 65 62 45 4d  61 69 6c 52 65 71 75 65  |ArcwebEMailReque|
000004f0  73 74 20 20 20 20 3d 20  28 6d 73 67 5f 41 72 63  |st    = (msg_Arc|
00000500  77 65 62 5f 5f 62 61 73  65 20 2b 20 20 36 29 2c  |web__base +  6),|
00000510  0a 20 20 20 20 20 20 20  20 4d 65 73 73 61 67 65  |.        Message|
00000520  5f 41 72 63 77 65 62 45  4d 61 69 6c 44 6f 6e 65  |_ArcwebEMailDone|
00000530  20 20 20 20 20 20 20 3d  20 28 6d 73 67 5f 41 72  |       = (msg_Ar|
00000540  63 77 65 62 5f 5f 62 61  73 65 20 2b 20 20 37 29  |cweb__base +  7)|
00000550  2c 0a 0a 20 20 20 20 20  20 20 20 4d 65 73 73 61  |,..        Messa|
00000560  67 65 5f 41 72 63 77 65  62 49 6d 61 67 65 53 69  |ge_ArcwebImageSi|
00000570  7a 65 20 20 20 20 20 20  20 3d 20 28 6d 73 67 5f  |ze       = (msg_|
00000580  41 72 63 77 65 62 5f 5f  62 61 73 65 20 2b 20 31  |Arcweb__base + 1|
00000590  36 29 2c 0a 20 20 20 20  20 20 20 20 4d 65 73 73  |6),.        Mess|
000005a0  61 67 65 5f 41 72 63 77  65 62 49 6d 61 67 65 43  |age_ArcwebImageC|
000005b0  6f 6d 70 6c 65 74 65 20  20 20 3d 20 28 6d 73 67  |omplete   = (msg|
000005c0  5f 41 72 63 77 65 62 5f  5f 62 61 73 65 20 2b 20  |_Arcweb__base + |
000005d0  31 37 29 2c 0a 20 20 20  20 20 20 20 20 4d 65 73  |17),.        Mes|
000005e0  73 61 67 65 5f 41 72 63  77 65 62 58 66 65 72 43  |sage_ArcwebXferC|
000005f0  6f 6e 74 72 6f 6c 20 20  20 20 20 3d 20 28 6d 73  |ontrol     = (ms|
00000600  67 5f 41 72 63 77 65 62  5f 5f 62 61 73 65 20 2b  |g_Arcweb__base +|
00000610  20 31 38 29 2c 0a 20 20  20 20 20 20 20 20 4d 65  | 18),.        Me|
00000620  73 73 61 67 65 5f 41 72  63 77 65 62 58 66 65 72  |ssage_ArcwebXfer|
00000630  43 6f 6e 74 72 6f 6c 41  63 6b 20 20 3d 20 28 6d  |ControlAck  = (m|
00000640  73 67 5f 41 72 63 77 65  62 5f 5f 62 61 73 65 20  |sg_Arcweb__base |
00000650  2b 20 31 39 29 2c 0a 0a  20 20 20 20 20 20 20 20  |+ 19),..        |
00000660  4d 65 73 73 61 67 65 5f  41 72 63 77 65 62 51 75  |Message_ArcwebQu|
00000670  69 74 20 20 20 20 20 20  20 20 20 20 20 20 3d 20  |it            = |
00000680  28 6d 73 67 5f 41 72 63  77 65 62 5f 5f 62 61 73  |(msg_Arcweb__bas|
00000690  65 20 2b 20 33 32 29 2c  0a 20 20 20 20 20 20 20  |e + 32),.       |
000006a0  20 4d 65 73 73 61 67 65  5f 41 72 63 77 65 62 45  | Message_ArcwebE|
000006b0  78 70 69 72 65 20 20 20  20 20 20 20 20 20 20 3d  |xpire          =|
000006c0  20 28 6d 73 67 5f 41 72  63 77 65 62 5f 5f 62 61  | (msg_Arcweb__ba|
000006d0  73 65 20 2b 20 33 33 29  2c 0a 20 20 20 20 20 20  |se + 33),.      |
000006e0  20 20 4d 65 73 73 61 67  65 5f 41 72 63 77 65 62  |  Message_Arcweb|
000006f0  41 62 6f 72 74 52 65 71  75 65 73 74 20 20 20 20  |AbortRequest    |
00000700  3d 20 28 6d 73 67 5f 41  72 63 77 65 62 5f 5f 62  |= (msg_Arcweb__b|
00000710  61 73 65 20 2b 20 33 34  29 2c 0a 20 20 20 20 20  |ase + 34),.     |
00000720  20 20 20 4d 65 73 73 61  67 65 5f 41 72 63 77 65  |   Message_Arcwe|
00000730  62 54 72 61 6e 73 66 65  72 53 74 61 74 75 73 20  |bTransferStatus |
00000740  20 3d 20 28 6d 73 67 5f  41 72 63 77 65 62 5f 5f  | = (msg_Arcweb__|
00000750  62 61 73 65 20 2b 20 33  35 29 2c 0a 20 20 20 20  |base + 35),.    |
00000760  20 20 20 20 4d 65 73 73  61 67 65 5f 41 72 63 77  |    Message_Arcw|
00000770  65 62 43 6f 6e 66 69 67  75 72 65 20 20 20 20 20  |ebConfigure     |
00000780  20 20 3d 20 28 6d 73 67  5f 41 72 63 77 65 62 5f  |  = (msg_Arcweb_|
00000790  5f 62 61 73 65 20 2b 20  33 36 29 2c 0a 20 20 20  |_base + 36),.   |
000007a0  20 20 20 20 20 4d 65 73  73 61 67 65 5f 41 72 63  |     Message_Arc|
000007b0  77 65 62 45 78 74 65 72  6e 61 6c 4c 61 75 6e 63  |webExternalLaunc|
000007c0  68 20 20 3d 20 28 6d 73  67 5f 41 72 63 77 65 62  |h  = (msg_Arcweb|
000007d0  5f 5f 62 61 73 65 20 2b  20 33 37 29 2c 0a 20 20  |__base + 37),.  |
000007e0  20 20 20 20 20 20 4d 65  73 73 61 67 65 5f 41 72  |      Message_Ar|
000007f0  63 77 65 62 4c 61 75 6e  63 68 44 6f 6e 65 20 20  |cwebLaunchDone  |
00000800  20 20 20 20 3d 20 28 6d  73 67 5f 41 72 63 77 65  |    = (msg_Arcwe|
00000810  62 5f 5f 62 61 73 65 20  2b 20 33 38 29 2c 0a 20  |b__base + 38),. |
00000820  20 20 20 20 20 20 20 4d  65 73 73 61 67 65 5f 41  |       Message_A|
00000830  72 63 77 65 62 57 65 62  42 72 6f 77 73 65 72 20  |rcwebWebBrowser |
00000840  20 20 20 20 20 3d 20 28  6d 73 67 5f 41 72 63 77  |     = (msg_Arcw|
00000850  65 62 5f 5f 62 61 73 65  20 2b 20 33 39 29 2c 0a  |eb__base + 39),.|
00000860  20 20 20 20 20 20 20 20  4d 65 73 73 61 67 65 5f  |        Message_|
00000870  41 72 63 77 65 62 43 6f  6c 6f 75 72 53 65 6c 65  |ArcwebColourSele|
00000880  63 74 65 64 20 20 3d 20  28 6d 73 67 5f 41 72 63  |cted  = (msg_Arc|
00000890  77 65 62 5f 5f 62 61 73  65 20 2b 20 34 30 29 2c  |web__base + 40),|
000008a0  0a 20 20 20 20 20 20 20  20 4d 65 73 73 61 67 65  |.        Message|
000008b0  5f 41 72 63 77 65 62 50  65 72 6d 61 6e 65 6e 74  |_ArcwebPermanent|
000008c0  4d 6f 76 65 20 20 20 3d  20 28 6d 73 67 5f 41 72  |Move   = (msg_Ar|
000008d0  63 77 65 62 5f 5f 62 61  73 65 20 2b 20 34 31 29  |cweb__base + 41)|
000008e0  2c 0a 0a 20 20 20 20 20  20 20 20 4d 65 73 73 61  |,..        Messa|
000008f0  67 65 5f 49 6e 74 65 72  74 61 6c 6b 52 65 71 75  |ge_IntertalkRequ|
00000900  65 73 74 20 20 20 20 20  20 3d 20 28 30 78 34 41  |est      = (0x4A|
00000910  46 38 30 29 0a 0a 7d 20  61 72 63 77 65 62 5f 6d  |F80)..} arcweb_m|
00000920  73 67 69 64 3b 0a 0a 0a  2f 2a 20 55 73 65 20 74  |sgid;.../* Use t|
00000930  68 65 73 65 20 63 6f 6e  73 74 61 6e 74 73 20 69  |hese constants i|
00000940  6e 20 74 68 65 20 66 6c  61 67 20 77 6f 72 64 73  |n the flag words|
00000950  20 69 6e 20 74 68 65 20  6d 65 73 73 61 67 65 73  | in the messages|
00000960  20 62 65 6c 6f 77 20 2a  2f 0a 0a 23 64 65 66 69  | below */..#defi|
00000970  6e 65 20 61 72 63 77 65  62 5f 46 4c 41 47 53 5f  |ne arcweb_FLAGS_|
00000980  65 72 72 6f 72 20 20 20  20 20 20 20 20 20 20 20  |error           |
00000990  20 20 20 30 78 38 30 30  30 30 30 30 30 0a 23 64  |   0x80000000.#d|
000009a0  65 66 69 6e 65 20 61 72  63 77 65 62 5f 46 4c 41  |efine arcweb_FLA|
000009b0  47 53 5f 74 79 70 65 6b  6e 6f 77 6e 20 20 20 20  |GS_typeknown    |
000009c0  20 20 20 20 20 20 30 78  34 30 30 30 30 30 30 30  |      0x40000000|
000009d0  0a 23 64 65 66 69 6e 65  20 61 72 63 77 65 62 5f  |.#define arcweb_|
000009e0  46 4c 41 47 53 5f 69 6e  68 69 62 69 74 5f 72 65  |FLAGS_inhibit_re|
000009f0  6e 64 65 72 20 20 20 20  20 30 78 32 30 30 30 30  |nder     0x20000|
00000a00  30 30 30 0a 23 64 65 66  69 6e 65 20 61 72 63 77  |000.#define arcw|
00000a10  65 62 5f 46 4c 41 47 53  5f 77 61 6e 74 5f 73 79  |eb_FLAGS_want_sy|
00000a20  6d 6c 69 6e 6b 20 20 20  20 20 20 20 30 78 31 30  |mlink       0x10|
00000a30  30 30 30 30 30 30 0a 23  64 65 66 69 6e 65 20 61  |000000.#define a|
00000a40  72 63 77 65 62 5f 46 4c  41 47 53 5f 75 72 6c 5f  |rcweb_FLAGS_url_|
00000a50  63 68 61 6e 67 65 64 20  20 20 20 20 20 20 20 30  |changed        0|
00000a60  78 30 38 30 30 30 30 30  30 0a 23 64 65 66 69 6e  |x08000000.#defin|
00000a70  65 20 61 72 63 77 65 62  5f 46 4c 41 47 53 5f 63  |e arcweb_FLAGS_c|
00000a80  6c 6f 73 65 5f 70 72 65  76 69 6f 75 73 20 20 20  |lose_previous   |
00000a90  20 20 30 78 30 34 30 30  30 30 30 30 0a 23 64 65  |  0x04000000.#de|
00000aa0  66 69 6e 65 20 61 72 63  77 65 62 5f 46 4c 41 47  |fine arcweb_FLAG|
00000ab0  53 5f 69 6d 61 67 65 5f  66 65 74 63 68 20 20 20  |S_image_fetch   |
00000ac0  20 20 20 20 20 30 78 30  32 30 30 30 30 30 30 0a  |     0x02000000.|
00000ad0  23 64 65 66 69 6e 65 20  61 72 63 77 65 62 5f 46  |#define arcweb_F|
00000ae0  4c 41 47 53 5f 65 72 72  6f 72 5f 68 61 6e 64 6c  |LAGS_error_handl|
00000af0  65 64 20 20 20 20 20 20  30 78 30 31 30 30 30 30  |ed      0x010000|
00000b00  30 30 0a 23 64 65 66 69  6e 65 20 61 72 63 77 65  |00.#define arcwe|
00000b10  62 5f 46 4c 41 47 53 5f  69 6e 68 69 62 69 74 5f  |b_FLAGS_inhibit_|
00000b20  64 69 73 70 6c 61 79 20  20 20 20 30 78 30 30 38  |display    0x008|
00000b30  30 30 30 30 30 0a 23 64  65 66 69 6e 65 20 61 72  |00000.#define ar|
00000b40  63 77 65 62 5f 46 4c 41  47 53 5f 65 78 74 65 6e  |cweb_FLAGS_exten|
00000b50  64 65 64 5f 75 72 6c 20  20 20 20 20 20 20 30 78  |ded_url       0x|
00000b60  30 30 34 30 30 30 30 30  0a 23 64 65 66 69 6e 65  |00400000.#define|
00000b70  20 61 72 63 77 65 62 5f  46 4c 41 47 53 5f 65 6d  | arcweb_FLAGS_em|
00000b80  61 69 6c 5f 63 6f 6d 70  6c 65 74 65 20 20 20 20  |ail_complete    |
00000b90  20 30 78 30 30 32 30 30  30 30 30 0a 23 64 65 66  | 0x00200000.#def|
00000ba0  69 6e 65 20 61 72 63 77  65 62 5f 46 4c 41 47 53  |ine arcweb_FLAGS|
00000bb0  5f 72 65 6c 6f 61 64 09  09 30 78 30 30 31 30 30  |_reload..0x00100|
00000bc0  30 30 30 0a 23 64 65 66  69 6e 65 20 61 72 63 77  |000.#define arcw|
00000bd0  65 62 5f 46 4c 41 47 53  5f 6c 6f 61 64 5f 74 6f  |eb_FLAGS_load_to|
00000be0  5f 64 69 73 63 09 30 78  30 30 30 38 30 30 30 30  |_disc.0x00080000|
00000bf0  0a 23 64 65 66 69 6e 65  20 61 72 63 77 65 62 5f  |.#define arcweb_|
00000c00  46 4c 41 47 53 5f 66 6f  72 63 69 6e 67 5f 72 65  |FLAGS_forcing_re|
00000c10  6c 6f 61 64 09 30 78 30  30 30 34 30 30 30 30 0a  |load.0x00040000.|
00000c20  23 64 65 66 69 6e 65 20  61 72 63 77 65 62 5f 46  |#define arcweb_F|
00000c30  4c 41 47 53 5f 72 65 73  65 72 76 65 64 5f 6d 61  |LAGS_reserved_ma|
00000c40  73 6b 20 20 20 20 20 20  30 78 30 30 30 32 30 30  |sk      0x000200|
00000c50  30 30 0a 23 64 65 66 69  6e 65 20 61 72 63 77 65  |00.#define arcwe|
00000c60  62 5f 46 4c 41 47 53 5f  65 78 74 65 6e 64 65 64  |b_FLAGS_extended|
00000c70  5f 74 79 70 65 20 20 20  20 20 20 30 78 30 30 30  |_type      0x000|
00000c80  31 30 30 30 30 0a 23 64  65 66 69 6e 65 20 61 72  |10000.#define ar|
00000c90  63 77 65 62 5f 46 4c 41  47 53 5f 74 79 70 65 6d  |cweb_FLAGS_typem|
00000ca0  61 73 6b 20 20 20 20 20  20 20 20 20 20 20 30 78  |ask           0x|
00000cb0  30 30 30 31 66 66 66 66  0a 23 64 65 66 69 6e 65  |0001ffff.#define|
00000cc0  20 61 72 63 77 65 62 5f  46 4c 41 47 53 5f 73 74  | arcweb_FLAGS_st|
00000cd0  72 65 61 6d 09 09 30 78  30 30 30 30 34 30 30 30  |ream..0x00004000|
00000ce0  0a 23 64 65 66 69 6e 65  20 61 72 63 77 65 62 5f  |.#define arcweb_|
00000cf0  46 4c 41 47 53 5f 72 6e  66 72 09 09 30 78 30 30  |FLAGS_rnfr..0x00|
00000d00  30 30 32 30 30 30 0a 23  64 65 66 69 6e 65 20 61  |002000.#define a|
00000d10  72 63 77 65 62 5f 46 4c  41 47 53 5f 64 65 6c 65  |rcweb_FLAGS_dele|
00000d20  09 09 30 78 30 30 30 30  31 30 30 30 0a 23 64 65  |..0x00001000.#de|
00000d30  66 69 6e 65 20 61 72 63  77 65 62 5f 46 4c 41 47  |fine arcweb_FLAG|
00000d40  53 5f 72 6d 64 69 72 09  09 30 78 30 30 30 30 30  |S_rmdir..0x00000|
00000d50  38 30 30 0a 23 64 65 66  69 6e 65 20 61 72 63 77  |800.#define arcw|
00000d60  65 62 5f 46 4c 41 47 53  5f 6d 6b 64 69 72 09 09  |eb_FLAGS_mkdir..|
00000d70  30 78 30 30 30 30 30 34  30 30 0a 23 64 65 66 69  |0x00000400.#defi|
00000d80  6e 65 20 61 72 63 77 65  62 5f 46 4c 41 47 53 5f  |ne arcweb_FLAGS_|
00000d90  70 75 74 09 09 30 78 30  30 30 30 30 32 30 30 0a  |put..0x00000200.|
00000da0  23 64 65 66 69 6e 65 20  61 72 63 77 65 62 5f 46  |#define arcweb_F|
00000db0  4c 41 47 53 5f 66 6f 72  63 69 6e 67 5f 69 6d 61  |LAGS_forcing_ima|
00000dc0  67 65 73 09 30 78 30 30  30 30 30 31 30 30 0a 23  |ges.0x00000100.#|
00000dd0  64 65 66 69 6e 65 20 61  72 63 77 65 62 5f 46 4c  |define arcweb_FL|
00000de0  41 47 53 5f 72 65 66 65  72 65 72 5f 61 76 61 69  |AGS_referer_avai|
00000df0  6c 61 62 6c 65 09 30 78  30 30 30 30 30 30 38 30  |lable.0x00000080|
00000e00  0a 23 64 65 66 69 6e 65  20 61 72 63 77 65 62 5f  |.#define arcweb_|
00000e10  46 4c 41 47 53 5f 78 66  65 72 5f 63 6f 6e 74 72  |FLAGS_xfer_contr|
00000e20  6f 6c 20 20 20 20 20 20  20 30 78 30 30 30 30 30  |ol       0x00000|
00000e30  30 32 30 0a 23 64 65 66  69 6e 65 20 61 72 63 77  |020.#define arcw|
00000e40  65 62 5f 46 4c 41 47 53  5f 69 6d 61 67 65 73 5f  |eb_FLAGS_images_|
00000e50  64 69 73 61 62 6c 65 64  20 20 20 20 30 78 30 30  |disabled    0x00|
00000e60  30 30 30 30 31 30 0a 23  64 65 66 69 6e 65 20 61  |000010.#define a|
00000e70  72 63 77 65 62 5f 46 4c  41 47 53 5f 70 6f 73 74  |rcweb_FLAGS_post|
00000e80  5f 77 61 73 5f 70 75 74  20 20 20 20 20 20 20 30  |_was_put       0|
00000e90  78 30 30 30 30 30 30 30  38 0a 23 64 65 66 69 6e  |x00000008.#defin|
00000ea0  65 20 61 72 63 77 65 62  5f 46 4c 41 47 53 5f 66  |e arcweb_FLAGS_f|
00000eb0  61 73 74 5f 69 6d 61 67  65 73 09 30 78 30 30 30  |ast_images.0x000|
00000ec0  30 30 30 30 34 0a 23 64  65 66 69 6e 65 20 61 72  |00004.#define ar|
00000ed0  63 77 65 62 5f 46 4c 41  47 53 5f 6c 6f 63 61 6c  |cweb_FLAGS_local|
00000ee0  5f 6c 61 75 6e 63 68 09  30 78 30 30 30 30 30 30  |_launch.0x000000|
00000ef0  30 32 0a 23 64 65 66 69  6e 65 20 61 72 63 77 65  |02.#define arcwe|
00000f00  62 5f 46 4c 41 47 53 5f  64 6f 63 75 6d 65 6e 74  |b_FLAGS_document|
00000f10  5f 66 65 74 63 68 09 30  78 30 30 30 30 30 30 30  |_fetch.0x0000000|
00000f20  30 0a 0a 0a 23 64 65 66  69 6e 65 20 61 72 63 77  |0...#define arcw|
00000f30  65 62 5f 58 46 45 52 5f  78 6d 69 74 5f 72 75 6e  |eb_XFER_xmit_run|
00000f40  6e 69 6e 67 20 20 20 20  20 20 20 20 30 78 30 30  |ning        0x00|
00000f50  30 30 30 30 30 31 0a 23  64 65 66 69 6e 65 20 61  |000001.#define a|
00000f60  72 63 77 65 62 5f 58 46  45 52 5f 72 65 63 76 5f  |rcweb_XFER_recv_|
00000f70  72 75 6e 6e 69 6e 67 20  20 20 20 20 20 20 20 30  |running        0|
00000f80  78 30 30 30 30 30 30 30  32 0a 23 64 65 66 69 6e  |x00000002.#defin|
00000f90  65 20 61 72 63 77 65 62  5f 58 46 45 52 5f 78 6d  |e arcweb_XFER_xm|
00000fa0  69 74 5f 63 6f 6d 70 6c  65 74 65 20 20 20 20 20  |it_complete     |
00000fb0  20 20 30 78 30 30 30 30  30 30 30 34 0a 23 64 65  |  0x00000004.#de|
00000fc0  66 69 6e 65 20 61 72 63  77 65 62 5f 58 46 45 52  |fine arcweb_XFER|
00000fd0  5f 72 65 63 76 5f 63 6f  6d 70 6c 65 74 65 20 20  |_recv_complete  |
00000fe0  20 20 20 20 20 30 78 30  30 30 30 30 30 30 38 0a  |     0x00000008.|
00000ff0  23 64 65 66 69 6e 65 20  61 72 63 77 65 62 5f 58  |#define arcweb_X|
00001000  46 45 52 5f 6d 69 73 63  5f 72 75 6e 6e 69 6e 67  |FER_misc_running|
00001010  20 20 20 20 20 20 20 20  30 78 30 30 30 30 30 30  |        0x000000|
00001020  31 30 0a 23 64 65 66 69  6e 65 20 61 72 63 77 65  |10.#define arcwe|
00001030  62 5f 58 46 45 52 5f 72  65 73 65 72 76 65 64 20  |b_XFER_reserved |
00001040  20 20 20 20 20 20 20 20  20 20 20 30 78 66 66 66  |           0xfff|
00001050  66 66 66 65 30 0a 0a 0a  2f 2a 20 46 6c 61 67 20  |fffe0.../* Flag |
00001060  62 69 74 20 6d 65 61 6e  69 6e 67 73 3a 0a 20 2a  |bit meanings:. *|
00001070  0a 20 2a 20 20 52 65 73  70 6f 6e 73 65 73 20 6f  |. *  Responses o|
00001080  6e 6c 79 3a 0a 20 2a 20  20 20 20 20 20 62 69 74  |nly:. *      bit|
00001090  73 20 30 20 74 6f 20 31  35 20 20 20 20 3a 20 52  |s 0 to 15    : R|
000010a0  49 53 43 20 4f 53 2f 41  72 63 57 65 62 20 66 69  |ISC OS/ArcWeb fi|
000010b0  6c 65 74 79 70 65 20 69  6e 64 69 63 61 74 6f 72  |letype indicator|
000010c0  0a 20 2a 20 20 20 20 20  20 62 69 74 20 31 36 20  |. *      bit 16 |
000010d0  20 20 20 20 20 20 20 20  20 3a 20 69 66 20 73 65  |         : if se|
000010e0  74 2c 20 74 79 70 65 20  69 73 20 61 72 63 77 65  |t, type is arcwe|
000010f0  62 5f 54 59 50 45 53 5f  2a 2c 20 65 6c 73 65 20  |b_TYPES_*, else |
00001100  52 49 53 43 20 4f 53 20  74 79 70 65 0a 20 2a 0a  |RISC OS type. *.|
00001110  20 2a 20 20 52 65 71 75  65 73 74 73 20 6f 6e 6c  | *  Requests onl|
00001120  79 3a 0a 20 2a 20 20 20  20 20 20 62 69 74 20 20  |y:. *      bit  |
00001130  31 20 20 20 20 20 20 20  20 20 20 3a 20 74 68 65  |1          : the|
00001140  20 70 72 65 76 69 6f 75  73 20 70 61 67 65 20 77  | previous page w|
00001150  61 73 20 61 20 6c 6f 63  61 6c 3a 20 55 52 4c 0a  |as a local: URL.|
00001160  20 2a 20 20 20 20 20 20  62 69 74 20 20 32 20 20  | *      bit  2  |
00001170  20 20 20 20 20 20 20 20  3a 20 69 66 20 73 65 74  |        : if set|
00001180  2c 20 27 66 61 73 74 20  69 6d 61 67 65 73 27 20  |, 'fast images' |
00001190  61 72 65 20 62 65 69 6e  67 20 75 73 65 64 20 2d  |are being used -|
000011a0  20 6e 6f 74 20 69 6d 70  6c 65 6d 65 6e 74 65 64  | not implemented|
000011b0  20 79 65 74 0a 20 2a 20  20 20 20 20 20 62 69 74  | yet. *      bit|
000011c0  20 20 33 20 20 20 20 20  20 20 20 20 20 3a 20 69  |  3          : i|
000011d0  66 20 73 65 74 2c 20 74  68 65 20 50 4f 53 54 20  |f set, the POST |
000011e0  72 65 71 75 65 73 74 20  73 68 6f 75 6c 64 20 62  |request should b|
000011f0  65 20 73 65 6e 74 20 61  73 20 61 20 50 55 54 20  |e sent as a PUT |
00001200  69 6e 73 74 65 61 64 0a  20 2a 20 20 20 20 20 20  |instead. *      |
00001210  62 69 74 20 20 34 20 20  20 20 20 20 20 20 20 20  |bit  4          |
00001220  3a 20 69 66 20 73 65 74  2c 20 75 73 65 72 20 68  |: if set, user h|
00001230  61 73 20 64 69 73 61 62  6c 65 64 20 69 6d 61 67  |as disabled imag|
00001240  65 20 66 65 74 63 68 69  6e 67 0a 20 2a 20 20 20  |e fetching. *   |
00001250  20 20 20 62 69 74 20 20  35 20 20 20 20 20 20 20  |   bit  5       |
00001260  20 20 20 3a 20 69 66 20  73 65 74 2c 20 63 6f 6e  |   : if set, con|
00001270  74 72 6f 6c 20 74 72 61  6e 73 66 65 72 20 70 72  |trol transfer pr|
00001280  6f 74 6f 63 6f 6c 20 69  73 20 61 76 61 69 6c 61  |otocol is availa|
00001290  62 6c 65 0a 20 2a 09 62  69 74 20 20 36 09 09 52  |ble. *.bit  6..R|
000012a0  65 73 65 72 76 65 64 20  2d 20 6d 75 73 74 20 62  |eserved - must b|
000012b0  65 20 7a 65 72 6f 0a 20  2a 09 62 69 74 20 20 37  |e zero. *.bit  7|
000012c0  09 09 49 6e 74 65 72 6e  61 6c 20 75 73 65 20 6f  |..Internal use o|
000012d0  6e 6c 79 20 2d 20 6d 75  73 74 20 62 65 20 7a 65  |nly - must be ze|
000012e0  72 6f 20 66 6f 72 20 6e  6f 6e 2d 41 72 63 57 65  |ro for non-ArcWe|
000012f0  62 20 74 61 73 6b 73 0a  20 2a 09 62 69 74 20 20  |b tasks. *.bit  |
00001300  38 09 09 49 66 20 73 65  74 2c 20 75 73 65 72 20  |8..If set, user |
00001310  68 61 73 20 66 6f 72 63  65 64 20 69 6d 61 67 65  |has forced image|
00001320  20 66 65 74 63 68 69 6e  67 20 66 6f 72 20 74 68  | fetching for th|
00001330  69 73 20 66 65 74 63 68  0a 20 2a 09 62 69 74 20  |is fetch. *.bit |
00001340  20 39 09 09 49 66 20 73  65 74 2c 20 75 73 65 72  | 9..If set, user|
00001350  20 72 65 71 75 65 73 74  65 64 20 61 20 50 55 54  | requested a PUT|
00001360  20 6f 70 65 72 61 74 69  6f 6e 0a 20 2a 09 62 69  | operation. *.bi|
00001370  74 20 20 31 30 09 09 49  66 20 73 65 74 2c 20 75  |t  10..If set, u|
00001380  73 65 72 20 72 65 71 75  65 73 74 65 64 20 74 68  |ser requested th|
00001390  65 20 55 52 49 20 62 65  20 63 72 65 61 74 65 64  |e URI be created|
000013a0  20 61 73 20 61 20 64 69  72 65 63 74 6f 72 79 0a  | as a directory.|
000013b0  20 2a 09 62 69 74 20 20  31 31 09 09 49 66 20 73  | *.bit  11..If s|
000013c0  65 74 2c 20 75 73 65 72  20 72 65 71 75 65 73 74  |et, user request|
000013d0  65 64 20 74 68 65 20 64  69 72 65 63 74 6f 72 79  |ed the directory|
000013e0  20 55 52 49 20 62 65 20  64 65 6c 65 74 65 64 0a  | URI be deleted.|
000013f0  20 2a 09 62 69 74 20 20  31 32 09 09 49 66 20 73  | *.bit  12..If s|
00001400  65 74 2c 20 75 73 65 72  20 72 65 71 75 65 73 74  |et, user request|
00001410  65 64 20 64 65 6c 65 74  69 6f 6e 20 6f 66 20 55  |ed deletion of U|
00001420  52 49 0a 20 2a 09 62 69  74 20 20 31 33 09 09 49  |RI. *.bit  13..I|
00001430  66 20 73 65 74 2c 20 75  73 65 72 20 72 65 71 75  |f set, user requ|
00001440  65 73 74 65 64 20 72 65  6e 61 6d 65 20 6f 66 20  |ested rename of |
00001450  55 52 49 0a 20 2a 20 20  20 20 20 20 62 69 74 20  |URI. *      bit |
00001460  20 31 34 09 09 52 65 73  65 72 76 65 64 20 2d 20  | 14..Reserved - |
00001470  6d 75 73 74 20 62 65 20  7a 65 72 6f 20 28 6f 72  |must be zero (or|
00001480  20 79 6f 75 27 6c 6c 20  62 65 20 73 6f 72 72 79  | you'll be sorry|
00001490  29 0a 20 2a 0a 20 2a 20  20 42 6f 74 68 3a 0a 20  |). *. *  Both:. |
000014a0  2a 0a 20 2a 20 20 20 20  20 20 62 69 74 73 20 31  |*. *      bits 1|
000014b0  37 20 61 6e 64 20 31 38  20 20 3a 20 72 65 73 65  |7 and 18  : rese|
000014c0  72 76 65 64 20 28 6d 75  73 74 20 62 65 20 70 72  |rved (must be pr|
000014d0  65 73 65 72 76 65 64 20  69 6e 20 72 65 70 6c 69  |eserved in repli|
000014e0  65 73 29 0a 20 2a 20 20  20 20 20 20 62 69 74 20  |es). *      bit |
000014f0  31 39 20 20 20 20 20 20  20 20 20 20 3a 20 69 66  |19          : if|
00001500  20 73 65 74 2c 20 75 73  65 72 20 68 61 73 20 72  | set, user has r|
00001510  65 71 75 65 73 74 65 64  20 61 20 27 6c 6f 61 64  |equested a 'load|
00001520  20 74 6f 20 64 69 73 63  27 0a 20 2a 20 20 20 20  | to disc'. *    |
00001530  20 20 62 69 74 20 32 30  20 20 20 20 20 20 20 20  |  bit 20        |
00001540  20 20 3a 20 69 66 20 73  65 74 2c 20 74 68 69 73  |  : if set, this|
00001550  20 69 73 20 61 20 72 65  6c 6f 61 64 2c 20 73 6f  | is a reload, so|
00001560  20 66 6c 75 73 68 20 61  6e 79 20 63 61 63 68 65  | flush any cache|
00001570  0a 20 2a 20 20 20 20 20  20 62 69 74 20 32 31 20  |. *      bit 21 |
00001580  20 20 20 20 20 20 20 20  20 3a 20 69 66 20 73 65  |         : if se|
00001590  74 2c 20 74 68 65 20 65  2d 6d 61 69 6c 20 6d 65  |t, the e-mail me|
000015a0  73 73 61 67 65 20 69 73  20 63 6f 6d 70 6c 65 74  |ssage is complet|
000015b0  65 0a 20 2a 20 20 20 20  20 20 62 69 74 20 32 32  |e. *      bit 22|
000015c0  20 20 20 20 20 20 20 20  20 20 3a 20 69 66 20 73  |          : if s|
000015d0  65 74 2c 20 74 68 69 73  20 69 73 20 61 6e 20 65  |et, this is an e|
000015e0  78 74 65 6e 64 65 64 20  55 52 4c 0a 20 2a 20 20  |xtended URL. *  |
000015f0  20 20 20 20 62 69 74 20  32 33 20 20 20 20 20 20  |    bit 23      |
00001600  20 20 20 20 3a 20 69 66  20 73 65 74 2c 20 41 72  |    : if set, Ar|
00001610  63 57 65 62 20 77 69 6c  6c 20 6e 6f 74 20 64 69  |cWeb will not di|
00001620  73 70 6c 61 79 20 74 68  65 20 72 65 73 75 6c 74  |splay the result|
00001630  73 20 6f 66 20 74 68 65  20 72 65 6e 64 65 72 0a  |s of the render.|
00001640  20 2a 20 20 20 20 20 20  62 69 74 20 32 34 20 20  | *      bit 24  |
00001650  20 20 20 20 20 20 20 20  3a 20 69 66 20 73 65 74  |        : if set|
00001660  2c 20 41 72 63 57 65 62  20 77 6f 6e 74 20 72 61  |, ArcWeb wont ra|
00001670  69 73 65 20 61 6e 79 20  65 72 72 6f 72 20 74 6f  |ise any error to|
00001680  20 75 73 65 72 0a 20 2a  20 20 20 20 20 20 62 69  | user. *      bi|
00001690  74 20 32 35 20 20 20 20  20 20 20 20 20 20 3a 20  |t 25          : |
000016a0  69 66 20 73 65 74 2c 20  74 68 69 73 20 69 73 20  |if set, this is |
000016b0  61 6e 20 69 6e 6c 69 6e  65 20 69 6d 61 67 65 20  |an inline image |
000016c0  66 65 74 63 68 2c 20 6e  6f 74 20 61 20 70 61 67  |fetch, not a pag|
000016d0  65 20 66 65 74 63 68 0a  20 2a 20 20 20 20 20 20  |e fetch. *      |
000016e0  62 69 74 20 32 36 20 20  20 20 20 20 20 20 20 20  |bit 26          |
000016f0  3a 20 69 66 20 73 65 74  2c 20 74 68 65 20 70 72  |: if set, the pr|
00001700  65 76 69 6f 75 73 20 41  72 63 57 65 62 20 77 69  |evious ArcWeb wi|
00001710  6e 64 6f 77 20 73 68 6f  75 6c 64 20 62 65 20 63  |ndow should be c|
00001720  6c 6f 73 65 64 0a 20 2a  20 20 20 20 20 20 62 69  |losed. *      bi|
00001730  74 20 32 37 20 20 20 20  20 20 20 20 20 20 3a 20  |t 27          : |
00001740  69 66 20 73 65 74 2c 20  55 52 4c 20 68 61 73 20  |if set, URL has |
00001750  62 65 65 6e 20 63 68 61  6e 67 65 64 20 28 2b 20  |been changed (+ |
00001760  69 73 20 69 6e 20 55 52  4c 20 66 69 6c 65 29 0a  |is in URL file).|
00001770  20 2a 20 20 20 20 20 20  62 69 74 20 32 38 20 20  | *      bit 28  |
00001780  20 20 20 20 20 20 20 20  3a 20 69 66 20 73 65 74  |        : if set|
00001790  2c 20 72 65 71 75 65 73  74 20 75 73 65 20 6f 66  |, request use of|
000017a0  20 73 79 6d 62 6f 6c 69  63 20 6c 69 6e 6b 20 69  | symbolic link i|
000017b0  6e 20 68 6f 73 74 20 66  69 6c 65 73 79 73 74 65  |n host filesyste|
000017c0  6d 0a 20 2a 20 20 20 20  20 20 62 69 74 20 32 39  |m. *      bit 29|
000017d0  20 20 20 20 20 20 20 20  20 20 3a 20 69 66 20 73  |          : if s|
000017e0  65 74 2c 20 28 69 6e 20  46 65 74 63 68 44 6f 6e  |et, (in FetchDon|
000017f0  65 29 2c 20 41 72 63 57  65 62 20 77 69 6c 6c 20  |e), ArcWeb will |
00001800  6e 6f 74 20 72 65 6e 64  65 72 20 69 74 0a 20 2a  |not render it. *|
00001810  20 20 20 20 20 20 62 69  74 20 33 30 20 20 20 20  |      bit 30    |
00001820  20 20 20 20 20 20 3a 20  69 66 20 73 65 74 2c 20  |      : if set, |
00001830  62 69 74 73 20 30 2d 31  36 20 61 72 65 20 76 61  |bits 0-16 are va|
00001840  6c 69 64 2c 20 65 6c 73  65 20 74 68 65 79 20 61  |lid, else they a|
00001850  72 65 20 69 6e 76 61 6c  69 64 0a 20 2a 20 20 20  |re invalid. *   |
00001860  20 20 20 62 69 74 20 33  31 20 20 20 20 20 20 20  |   bit 31       |
00001870  20 20 20 3a 20 69 66 20  73 65 74 2c 20 74 68 65  |   : if set, the|
00001880  20 62 75 66 66 65 72 20  63 6f 6e 74 61 69 6e 73  | buffer contains|
00001890  20 61 6e 20 65 72 72 6f  72 20 6d 65 73 73 61 67  | an error messag|
000018a0  65 0a 20 2a 0a 20 2a 2f  0a 0a 74 79 70 65 64 65  |e. *. */..typede|
000018b0  66 20 73 74 72 75 63 74  20 7b 0a 20 20 20 20 20  |f struct {.     |
000018c0  20 20 20 73 74 72 75 63  74 20 61 72 63 77 65 62  |   struct arcweb|
000018d0  5f 6d 73 67 68 64 72 20  7b 20 20 20 20 2f 2a 20  |_msghdr {    /* |
000018e0  6d 65 73 73 61 67 65 20  62 6c 6f 63 6b 20 68 65  |message block he|
000018f0  61 64 65 72 2e 20 2a 2f  0a 20 20 20 20 20 20 20  |ader. */.       |
00001900  20 20 20 69 6e 74 20 73  69 7a 65 3b 20 20 20 20  |   int size;    |
00001910  20 20 20 20 20 20 20 20  20 20 20 2f 2a 20 32 30  |           /* 20|
00001920  3c 3d 73 69 7a 65 3c 3d  32 35 36 2c 20 6d 75 6c  |<=size<=256, mul|
00001930  74 69 70 6c 65 20 6f 66  20 34 20 2a 2f 0a 20 20  |tiple of 4 */.  |
00001940  20 20 20 20 20 20 20 20  69 6e 74 20 74 61 73 6b  |        int task|
00001950  3b 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |;               |
00001960  2f 2a 20 74 61 73 6b 20  68 61 6e 64 6c 65 20 6f  |/* task handle o|
00001970  66 20 73 65 6e 64 65 72  20 28 66 69 6c 6c 65 64  |f sender (filled|
00001980  20 69 6e 20 62 79 20 77  69 6d 70 29 20 2a 2f 0a  | in by wimp) */.|
00001990  20 20 20 20 20 20 20 20  20 20 69 6e 74 20 6d 79  |          int my|
000019a0  5f 72 65 66 3b 20 20 20  20 20 20 20 20 20 20 20  |_ref;           |
000019b0  20 20 2f 2a 20 75 6e 69  71 75 65 20 72 65 66 20  |  /* unique ref |
000019c0  6e 75 6d 62 65 72 20 28  66 69 6c 6c 65 64 20 69  |number (filled i|
000019d0  6e 20 62 79 20 77 69 6d  70 29 20 2a 2f 0a 20 20  |n by wimp) */.  |
000019e0  20 20 20 20 20 20 20 20  69 6e 74 20 79 6f 75 72  |        int your|
000019f0  5f 72 65 66 3b 20 20 20  20 20 20 20 20 20 20 20  |_ref;           |
00001a00  2f 2a 20 28 30 3d 3d 3e  6e 6f 6e 65 29 20 69 66  |/* (0==>none) if|
00001a10  20 6e 6f 6e 2d 7a 65 72  6f 2c 20 61 63 6b 6e 6f  | non-zero, ackno|
00001a20  77 6c 65 64 67 65 20 2a  2f 0a 20 20 20 20 20 20  |wledge */.      |
00001a30  20 20 20 20 61 72 63 77  65 62 5f 6d 73 67 69 64  |    arcweb_msgid|
00001a40  20 61 63 74 69 6f 6e 3b  20 20 20 20 2f 2a 20 6d  | action;    /* m|
00001a50  65 73 73 61 67 65 20 61  63 74 69 6f 6e 20 63 6f  |essage action co|
00001a60  64 65 20 2a 2f 0a 20 20  20 20 20 20 20 20 7d 20  |de */.        } |
00001a70  68 64 72 3b 0a 20 20 20  20 20 20 20 20 76 6f 69  |hdr;.        voi|
00001a80  64 20 20 20 20 20 20 20  20 20 20 20 2a 68 61 6e  |d           *han|
00001a90  64 6c 65 3b 20 20 20 20  20 20 20 20 20 2f 2a 20  |dle;         /* |
00001aa0  4d 55 53 54 20 62 65 20  70 72 65 73 65 72 76 65  |MUST be preserve|
00001ab0  64 20 2a 2f 0a 20 20 20  20 20 20 20 20 69 6e 74  |d */.        int|
00001ac0  20 20 20 20 20 20 20 20  20 20 20 20 20 66 6c 61  |             fla|
00001ad0  67 73 3b 20 20 20 20 20  20 20 20 20 20 2f 2a 20  |gs;          /* |
00001ae0  53 65 65 20 61 62 6f 76  65 20 2a 2f 0a 20 20 20  |See above */.   |
00001af0  20 20 20 20 20 75 6e 69  6f 6e 20 7b 0a 20 20 20  |     union {.   |
00001b00  20 20 20 20 20 20 20 20  20 20 20 20 20 69 6e 74  |             int|
00001b10  20 20 5f 61 72 63 77 65  62 5f 77 6f 72 64 73 5b  |  _arcweb_words[|
00001b20  35 37 5d 3b 20 2f 2a 20  45 6e 73 75 72 65 20 74  |57]; /* Ensure t|
00001b30  68 65 20 72 69 67 68 74  20 73 69 7a 65 20 2a 2f  |he right size */|
00001b40  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00001b50  20 63 68 61 72 20 5f 61  72 63 77 65 62 5f 64 61  | char _arcweb_da|
00001b60  74 61 5b 32 32 38 5d 3b  20 2f 2a 20 61 20 63 68  |ta[228]; /* a ch|
00001b70  61 72 20 76 65 72 73 69  6f 6e 20 20 20 20 20 20  |ar version      |
00001b80  20 20 2a 2f 0a 0a 20 20  20 20 20 20 20 20 20 20  |  */..          |
00001b90  20 20 20 20 20 20 73 74  72 75 63 74 20 7b 0a 20  |      struct {. |
00001ba0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001bb0  20 20 20 20 20 20 20 69  6e 74 20 20 20 20 20 6c  |       int     l|
00001bc0  6f 63 61 6c 66 69 6c 65  3b 20 20 2f 2a 20 2a 52  |ocalfile;  /* *R|
00001bd0  49 53 43 20 4f 53 2a 20  66 69 6c 65 20 68 61 6e  |ISC OS* file han|
00001be0  64 6c 65 20 2a 2f 0a 20  20 20 20 20 20 20 20 20  |dle */.         |
00001bf0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 75  |               u|
00001c00  6e 69 6f 6e 20 7b 0a 20  20 20 20 20 20 20 20 20  |nion {.         |
00001c10  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001c20  20 20 20 20 20 20 20 69  6e 74 20 20 20 20 20 75  |       int     u|
00001c30  72 6c 5f 66 69 6c 65 3b  20 20 20 20 20 20 20 20  |rl_file;        |
00001c40  20 20 20 20 2f 2a 20 69  66 20 62 69 74 20 32 32  |    /* if bit 22|
00001c50  20 73 65 74 20 2a 2f 0a  20 20 20 20 20 20 20 20  | set */.        |
00001c60  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001c70  20 20 20 20 20 20 20 20  63 68 61 72 20 20 20 20  |        char    |
00001c80  55 52 4c 5b 61 72 63 77  65 62 5f 4d 41 58 55 52  |URL[arcweb_MAXUR|
00001c90  4c 5d 3b 20 20 2f 2a 20  69 66 20 62 69 74 20 32  |L];  /* if bit 2|
00001ca0  32 20 63 6c 72 20 2a 2f  0a 20 20 20 20 20 20 20  |2 clr */.       |
00001cb0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001cc0  20 7d 20 75 72 6c 3b 0a  20 20 20 20 20 20 20 20  | } url;.        |
00001cd0  20 20 20 20 20 20 20 20  7d 20 66 65 74 63 68 5f  |        } fetch_|
00001ce0  72 65 71 75 65 73 74 3b  0a 0a 20 20 20 20 20 20  |request;..      |
00001cf0  20 20 20 20 20 20 20 20  20 20 75 6e 69 6f 6e 20  |          union |
00001d00  7b 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |{.              |
00001d10  20 20 20 20 20 20 20 20  20 20 73 74 72 75 63 74  |          struct|
00001d20  20 7b 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  | {.             |
00001d30  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001d40  20 20 20 69 6e 74 20 20  20 20 20 75 73 65 5f 67  |   int     use_g|
00001d50  69 76 65 6e 5f 65 78 70  69 72 79 3b 0a 20 20 20  |iven_expiry;.   |
00001d60  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001d70  20 20 20 20 20 20 20 20  20 20 20 20 20 69 6e 74  |             int|
00001d80  20 20 20 20 20 75 73 65  5f 64 65 66 61 75 6c 74  |     use_default|
00001d90  5f 65 78 70 69 72 79 3b  0a 20 20 20 20 20 20 20  |_expiry;.       |
00001da0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001db0  20 20 20 20 20 20 20 20  20 63 68 61 72 20 20 20  |         char   |
00001dc0  20 64 61 74 65 5b 38 5d  3b 20 2f 2a 20 74 6f 20  | date[8]; /* to |
00001dd0  73 74 6f 70 20 43 76 35  20 77 61 72 6e 69 6e 67  |stop Cv5 warning|
00001de0  73 20 2a 2f 0a 20 20 20  20 20 20 20 20 20 20 20  |s */.           |
00001df0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001e00  20 20 20 20 20 69 6e 74  09 72 65 73 70 6f 6e 73  |     int.respons|
00001e10  65 5f 63 6f 64 65 3b 0a  20 20 20 20 20 20 20 20  |e_code;.        |
00001e20  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001e30  20 20 20 20 20 20 20 20  63 68 61 72 09 6d 69 6d  |        char.mim|
00001e40  65 5f 74 79 70 65 5b 32  30 38 5d 3b 20 2f 2a 20  |e_type[208]; /* |
00001e50  4d 55 53 54 20 73 74 61  72 74 20 22 4d 49 4d 45  |MUST start "MIME|
00001e60  3a 22 20 2a 2f 0a 20 20  20 20 20 20 20 20 20 20  |:" */.          |
00001e70  20 20 20 20 20 20 20 20  20 20 20 20 20 20 7d 20  |              } |
00001e80  65 78 70 69 72 79 3b 0a  20 20 20 20 20 20 20 20  |expiry;.        |
00001e90  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001ea0  63 68 61 72 20 20 20 20  65 72 72 6f 72 5b 32 32  |char    error[22|
00001eb0  38 5d 3b 0a 20 20 20 20  20 20 20 20 20 20 20 20  |8];.            |
00001ec0  20 20 20 20 7d 20 66 65  74 63 68 5f 64 6f 6e 65  |    } fetch_done|
00001ed0  3b 0a 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |;..             |
00001ee0  20 20 73 74 72 75 63 74  20 7b 0a 20 20 20 20 20  |  struct {.     |
00001ef0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001f00  20 20 20 69 6e 74 20 20  20 20 20 6c 6f 63 61 6c  |   int     local|
00001f10  66 69 6c 65 3b 0a 20 20  20 20 20 20 20 20 20 20  |file;.          |
00001f20  20 20 20 20 20 20 20 20  20 20 20 20 20 20 69 6e  |              in|
00001f30  74 20 20 20 20 20 66 6f  72 6d 66 69 6c 65 3b 0a  |t     formfile;.|
00001f40  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001f50  20 20 20 20 20 20 20 20  75 6e 69 6f 6e 20 7b 0a  |        union {.|
00001f60  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00001f80  69 6e 74 20 20 20 20 20  75 72 6c 5f 66 69 6c 65  |int     url_file|
00001f90  3b 20 20 20 20 20 20 20  20 20 20 20 20 2f 2a 20  |;            /* |
00001fa0  69 66 20 62 69 74 20 32  32 20 73 65 74 20 2a 2f  |if bit 22 set */|
00001fb0  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00001fc0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001fd0  20 63 68 61 72 20 20 20  20 55 52 4c 5b 61 72 63  | char    URL[arc|
00001fe0  77 65 62 5f 4d 41 58 55  52 4c 5d 3b 20 20 2f 2a  |web_MAXURL];  /*|
00001ff0  20 69 66 20 62 69 74 20  32 32 20 63 6c 72 20 2a  | if bit 22 clr *|
00002000  2f 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |/.              |
00002010  20 20 20 20 20 20 20 20  20 20 7d 20 75 72 6c 3b  |          } url;|
00002020  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00002030  20 7d 20 70 6f 73 74 5f  72 65 71 75 65 73 74 3b  | } post_request;|
00002040  0a 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |..              |
00002050  20 20 73 74 72 75 63 74  20 7b 0a 20 20 20 20 20  |  struct {.     |
00002060  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002070  20 20 20 69 6e 74 20 20  20 20 20 6c 6f 63 61 6c  |   int     local|
00002080  73 72 63 3b 0a 20 20 20  20 20 20 20 20 20 20 20  |src;.           |
00002090  20 20 20 20 20 20 20 20  20 20 20 20 20 69 6e 74  |             int|
000020a0  20 20 20 20 20 6c 6f 63  61 6c 74 6d 70 3b 0a 20  |     localtmp;. |
000020b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000020c0  20 20 20 20 20 20 20 69  6e 74 20 20 20 20 20 6c  |       int     l|
000020d0  6f 63 61 6c 64 69 61 67  3b 0a 20 20 20 20 20 20  |ocaldiag;.      |
000020e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000020f0  20 20 69 6e 74 20 20 20  20 20 6c 6f 63 61 6c 6c  |  int     locall|
00002100  69 6e 6b 3b 0a 20 20 20  20 20 20 20 20 20 20 20  |ink;.           |
00002110  20 20 20 20 20 20 20 20  20 20 20 20 20 69 6e 74  |             int|
00002120  20 20 20 20 20 73 69 7a  65 5f 69 6e 5f 6d 73 67  |     size_in_msg|
00002130  3b 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |;.              |
00002140  20 20 20 20 20 20 20 20  20 20 63 68 61 72 20 20  |          char  |
00002150  20 20 66 69 6c 65 68 65  61 64 65 72 5b 32 32 38  |  fileheader[228|
00002160  2d 35 2a 73 69 7a 65 6f  66 28 69 6e 74 29 5d 3b  |-5*sizeof(int)];|
00002170  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00002180  20 7d 20 72 65 6e 64 65  72 5f 72 65 71 75 65 73  | } render_reques|
00002190  74 3b 0a 0a 20 20 20 20  20 20 20 20 20 20 20 20  |t;..            |
000021a0  20 20 20 20 75 6e 69 6f  6e 20 7b 0a 20 20 20 20  |    union {.    |
000021b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000021c0  20 20 20 20 73 74 72 75  63 74 20 7b 0a 20 20 20  |    struct {.   |
000021d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000021e0  20 20 20 20 20 20 20 20  20 20 20 20 20 69 6e 74  |             int|
000021f0  20 78 5f 70 69 78 3b 0a  20 20 20 20 20 20 20 20  | x_pix;.        |
00002200  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002210  20 20 20 20 20 20 20 20  69 6e 74 20 79 5f 70 69  |        int y_pi|
00002220  78 3b 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |x;.             |
00002230  20 20 20 20 20 20 20 20  20 20 20 7d 20 73 69 7a  |           } siz|
00002240  65 3b 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |e;.             |
00002250  20 20 20 20 20 20 20 20  20 20 20 63 68 61 72 20  |           char |
00002260  20 20 20 65 72 72 6f 72  5b 32 32 38 5d 3b 0a 20  |   error[228];. |
00002270  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 7d  |               }|
00002280  20 72 65 6e 64 65 72 5f  64 6f 6e 65 3b 0a 0a 20  | render_done;.. |
00002290  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 73  |               s|
000022a0  74 72 75 63 74 20 7b 0a  20 20 20 20 20 20 20 20  |truct {.        |
000022b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000022c0  69 6e 74 20 20 20 20 20  66 6f 72 6d 66 69 6c 65  |int     formfile|
000022d0  3b 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |;.              |
000022e0  20 20 7d 20 65 6d 61 69  6c 5f 72 65 71 75 65 73  |  } email_reques|
000022f0  74 3b 0a 0a 20 20 20 20  20 20 20 20 20 20 20 20  |t;..            |
00002300  20 20 20 20 73 74 72 75  63 74 20 7b 0a 20 20 20  |    struct {.   |
00002310  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002320  20 20 20 20 20 63 68 61  72 20 20 20 20 65 72 72  |     char    err|
00002330  6f 72 5b 32 32 38 5d 3b  20 2f 2a 20 44 6f 20 49  |or[228]; /* Do I|
00002340  20 77 61 6e 74 20 74 68  69 73 3f 20 2a 2f 0a 20  | want this? */. |
00002350  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 7d  |               }|
00002360  20 65 6d 61 69 6c 5f 64  6f 6e 65 3b 0a 0a 20 20  | email_done;..  |
00002370  20 20 20 20 20 20 20 20  20 20 20 20 20 20 73 74  |              st|
00002380  72 75 63 74 20 7b 0a 20  20 20 20 20 20 20 20 20  |ruct {.         |
00002390  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 75  |               u|
000023a0  6e 69 6f 6e 20 7b 0a 20  20 20 20 20 20 20 20 20  |nion {.         |
000023b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000023c0  20 20 20 20 20 20 20 69  6e 74 20 20 75 72 6c 5f  |       int  url_|
000023d0  66 69 6c 65 3b 20 20 20  20 20 20 20 20 20 20 20  |file;           |
000023e0  2f 2a 20 69 66 20 62 69  74 20 32 32 20 73 65 74  |/* if bit 22 set|
000023f0  20 20 20 2a 2f 0a 20 20  20 20 20 20 20 20 20 20  |   */.          |
00002400  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002410  20 20 20 20 20 20 63 68  61 72 20 55 52 4c 5b 61  |      char URL[a|
00002420  72 63 77 65 62 5f 4d 41  58 55 52 4c 5d 3b 20 2f  |rcweb_MAXURL]; /|
00002430  2a 20 69 66 20 62 69 74  20 32 32 20 63 6c 65 61  |* if bit 22 clea|
00002440  72 20 2a 2f 0a 20 20 20  20 20 20 20 20 20 20 20  |r */.           |
00002450  20 20 20 20 20 20 20 20  20 20 20 20 20 7d 20 75  |             } u|
00002460  72 6c 3b 0a 20 20 20 20  20 20 20 20 20 20 20 20  |rl;.            |
00002470  20 20 20 20 7d 20 65 78  70 69 72 65 3b 0a 0a 20  |    } expire;.. |
00002480  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002490  75 6e 69 6f 6e 20 7b 0a  20 20 20 20 20 20 20 20  |union {.        |
000024a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000024b0  73 74 72 75 63 74 20 7b  0a 20 20 20 20 20 20 20  |struct {.       |
000024c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000024d0  20 20 20 20 20 20 20 20  20 69 6e 74 20 20 20 20  |         int    |
000024e0  20 75 73 65 5f 67 69 76  65 6e 5f 65 78 70 69 72  | use_given_expir|
000024f0  79 3b 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |y;.             |
00002500  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002510  20 20 20 69 6e 74 20 20  20 20 20 75 73 65 5f 64  |   int     use_d|
00002520  65 66 61 75 6c 74 5f 65  78 70 69 72 79 3b 0a 20  |efault_expiry;. |
00002530  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002540  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 63  |               c|
00002550  68 61 72 20 20 20 20 64  61 74 65 5b 38 5d 3b 20  |har    date[8]; |
00002560  2f 2a 20 74 6f 20 73 74  6f 70 20 43 76 35 20 77  |/* to stop Cv5 w|
00002570  61 72 6e 69 6e 67 73 20  2a 2f 0a 20 20 20 20 20  |arnings */.     |
00002580  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002590  20 20 20 20 20 20 20 20  20 20 20 69 6e 74 09 72  |           int.r|
000025a0  65 73 70 6f 6e 73 65 5f  63 6f 64 65 3b 0a 20 20  |esponse_code;.  |
000025b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000025c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 63 68  |              ch|
000025d0  61 72 09 6d 69 6d 65 5f  74 79 70 65 5b 32 30 38  |ar.mime_type[208|
000025e0  5d 3b 20 2f 2a 20 4d 55  53 54 20 73 74 61 72 74  |]; /* MUST start|
000025f0  20 22 4d 49 4d 45 3a 22  20 2a 2f 0a 20 20 20 20  | "MIME:" */.    |
00002600  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002610  20 20 20 20 7d 20 65 78  70 69 72 79 3b 0a 20 20  |    } expiry;.  |
00002620  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002630  20 20 20 20 20 20 63 68  61 72 20 20 20 20 65 72  |      char    er|
00002640  72 6f 72 5b 32 32 38 5d  3b 0a 20 20 20 20 20 20  |ror[228];.      |
00002650  20 20 20 20 20 20 20 20  20 20 7d 20 70 6f 73 74  |          } post|
00002660  5f 64 6f 6e 65 3b 0a 0a  20 20 20 20 20 20 20 20  |_done;..        |
00002670  20 20 20 20 20 20 20 20  73 74 72 75 63 74 20 7b  |        struct {|
00002680  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00002690  20 20 20 20 20 20 20 20  20 69 6e 74 20 20 20 20  |         int    |
000026a0  20 66 6c 61 67 73 3b 0a  20 20 20 20 20 20 20 20  | flags;.        |
000026b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000026c0  69 6e 74 20 20 20 20 20  74 72 61 6e 73 6d 69 74  |int     transmit|
000026d0  5f 74 6f 74 61 6c 3b 0a  20 20 20 20 20 20 20 20  |_total;.        |
000026e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000026f0  69 6e 74 20 20 20 20 20  74 72 61 6e 73 6d 69 74  |int     transmit|
00002700  5f 73 6f 66 61 72 3b 0a  20 20 20 20 20 20 20 20  |_sofar;.        |
00002710  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002720  69 6e 74 20 20 20 20 20  72 65 63 65 69 76 65 5f  |int     receive_|
00002730  74 6f 74 61 6c 3b 0a 20  20 20 20 20 20 20 20 20  |total;.         |
00002740  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 69  |               i|
00002750  6e 74 20 20 20 20 20 72  65 63 65 69 76 65 5f 73  |nt     receive_s|
00002760  6f 66 61 72 3b 0a 20 20  20 20 20 20 20 20 20 20  |ofar;.          |
00002770  20 20 20 20 20 20 20 20  20 20 20 20 20 20 63 68  |              ch|
00002780  61 72 20 20 20 20 6d 65  73 73 61 67 65 5b 32 30  |ar    message[20|
00002790  38 5d 3b 0a 20 20 20 20  20 20 20 20 20 20 20 20  |8];.            |
000027a0  20 20 20 20 7d 20 73 74  61 74 75 73 5f 72 65 70  |    } status_rep|
000027b0  6f 72 74 3b 0a 0a 20 20  20 20 20 20 20 20 20 20  |ort;..          |
000027c0  20 20 20 20 20 20 73 74  72 75 63 74 20 7b 0a 20  |      struct {. |
000027d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000027e0  20 20 20 20 20 20 20 63  68 61 72 20 20 20 20 72  |       char    r|
000027f0  65 61 73 6f 6e 5b 32 32  38 5d 3b 0a 20 20 20 20  |eason[228];.    |
00002800  20 20 20 20 20 20 20 20  20 20 20 20 7d 20 61 62  |            } ab|
00002810  6f 72 74 5f 72 65 71 75  65 73 74 3b 0a 0a 20 20  |ort_request;..  |
00002820  20 20 20 20 20 20 20 20  20 20 20 20 20 20 73 74  |              st|
00002830  72 75 63 74 20 7b 0a 20  20 20 20 20 20 20 20 20  |ruct {.         |
00002840  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 69  |               i|
00002850  6e 74 20 20 20 20 20 72  65 6e 64 65 72 65 72 5f  |nt     renderer_|
00002860  68 61 6e 64 6c 65 3b 0a  20 20 20 20 20 20 20 20  |handle;.        |
00002870  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002880  69 6e 74 20 20 20 20 20  78 5f 6f 73 5f 75 6e 69  |int     x_os_uni|
00002890  74 73 3b 0a 20 20 20 20  20 20 20 20 20 20 20 20  |ts;.            |
000028a0  20 20 20 20 20 20 20 20  20 20 20 20 69 6e 74 20  |            int |
000028b0  20 20 20 20 79 5f 6f 73  5f 75 6e 69 74 73 3b 0a  |    y_os_units;.|
000028c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000028d0  7d 20 69 6d 61 67 65 5f  73 69 7a 65 3b 0a 0a 20  |} image_size;.. |
000028e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 73  |               s|
000028f0  74 72 75 63 74 20 7b 0a  20 20 20 20 20 20 20 20  |truct {.        |
00002900  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002910  69 6e 74 20 20 20 20 20  72 65 6e 64 65 72 65 72  |int     renderer|
00002920  5f 68 61 6e 64 6c 65 3b  0a 20 20 20 20 20 20 20  |_handle;.       |
00002930  20 20 20 20 20 20 20 20  20 7d 20 69 6d 61 67 65  |         } image|
00002940  5f 63 6f 6d 70 6c 65 74  65 3b 0a 0a 20 20 20 20  |_complete;..    |
00002950  20 20 20 20 20 20 20 20  20 20 20 20 73 74 72 75  |            stru|
00002960  63 74 20 7b 0a 20 20 20  20 20 20 20 20 20 20 20  |ct {.           |
00002970  20 20 20 20 20 09 63 68  61 72 09 61 70 70 6c 69  |     .char.appli|
00002980  63 61 74 69 6f 6e 5b 32  32 38 5d 3b 0a 20 20 20  |cation[228];.   |
00002990  20 20 20 20 20 20 20 20  20 20 20 20 20 7d 20 63  |             } c|
000029a0  6f 6e 66 69 67 75 72 65  3b 0a 0a 20 20 20 20 20  |onfigure;..     |
000029b0  20 20 20 20 20 20 20 20  20 20 20 73 74 72 75 63  |           struc|
000029c0  74 20 7b 0a 20 20 20 20  20 20 20 20 20 20 20 20  |t {.            |
000029d0  20 20 20 20 20 20 20 20  20 20 20 20 75 6e 69 6f  |            unio|
000029e0  6e 20 7b 0a 20 20 20 20  20 20 20 20 20 20 20 20  |n {.            |
000029f0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002a00  20 20 20 20 69 6e 74 20  20 75 72 6c 5f 66 69 6c  |    int  url_fil|
00002a10  65 3b 20 20 20 20 20 20  20 20 20 20 20 2f 2a 20  |e;           /* |
00002a20  69 66 20 62 69 74 20 32  32 20 73 65 74 20 20 20  |if bit 22 set   |
00002a30  2a 2f 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |*/.             |
00002a40  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002a50  20 20 20 63 68 61 72 20  55 52 4c 5b 61 72 63 77  |   char URL[arcw|
00002a60  65 62 5f 4d 41 58 55 52  4c 5d 3b 20 2f 2a 20 69  |eb_MAXURL]; /* i|
00002a70  66 20 62 69 74 20 32 32  20 63 6c 65 61 72 20 2a  |f bit 22 clear *|
00002a80  2f 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |/.              |
00002a90  20 20 20 20 20 20 20 20  20 20 7d 20 75 72 6c 3b  |          } url;|
00002aa0  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00002ab0  20 7d 20 6c 61 75 6e 63  68 5f 72 65 71 75 65 73  | } launch_reques|
00002ac0  74 3b 0a 0a 20 20 20 20  20 20 20 20 20 20 20 20  |t;..            |
00002ad0  20 20 20 20 73 74 72 75  63 74 20 7b 0a 20 20 20  |    struct {.   |
00002ae0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002af0  20 20 20 20 20 63 68 61  72 20 20 20 20 65 72 72  |     char    err|
00002b00  6f 72 5b 32 32 38 5d 3b  0a 20 20 20 20 20 20 20  |or[228];.       |
00002b10  20 20 20 20 20 20 20 20  20 7d 20 6c 61 75 6e 63  |         } launc|
00002b20  68 5f 64 6f 6e 65 3b 0a  0a 20 20 20 20 20 20 20  |h_done;..       |
00002b30  20 20 20 20 20 20 20 20  20 73 74 72 75 63 74 20  |         struct |
00002b40  7b 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |{.              |
00002b50  20 20 20 20 20 20 20 20  20 20 69 6e 74 20 20 20  |          int   |
00002b60  20 20 6c 6f 63 61 6c 66  69 6c 65 3b 20 20 2f 2a  |  localfile;  /*|
00002b70  20 2a 52 49 53 43 20 4f  53 2a 20 66 69 6c 65 20  | *RISC OS* file |
00002b80  68 61 6e 64 6c 65 20 2a  2f 0a 20 20 20 20 20 20  |handle */.      |
00002b90  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002ba0  20 20 75 6e 69 6f 6e 20  7b 0a 20 20 20 20 20 20  |  union {.      |
00002bb0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002bc0  20 20 20 20 20 20 20 20  20 20 69 6e 74 20 20 20  |          int   |
00002bd0  20 20 75 72 6c 5f 66 69  6c 65 3b 20 20 20 20 20  |  url_file;     |
00002be0  20 20 20 20 20 20 20 2f  2a 20 69 66 20 62 69 74  |       /* if bit|
00002bf0  20 32 32 20 73 65 74 20  2a 2f 0a 20 20 20 20 20  | 22 set */.     |
00002c00  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002c10  20 20 20 20 20 20 20 20  20 20 20 63 68 61 72 20  |           char |
00002c20  20 20 20 55 52 4c 5b 61  72 63 77 65 62 5f 4d 41  |   URL[arcweb_MA|
00002c30  58 55 52 4c 5d 3b 20 20  2f 2a 20 69 66 20 62 69  |XURL];  /* if bi|
00002c40  74 20 32 32 20 63 6c 72  20 2a 2f 0a 20 20 20 20  |t 22 clr */.    |
00002c50  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002c60  20 20 20 20 7d 20 75 72  6c 3b 0a 20 20 20 20 20  |    } url;.     |
00002c70  20 20 20 20 20 20 20 20  20 20 20 7d 20 78 66 65  |           } xfe|
00002c80  72 5f 72 65 71 75 65 73  74 3b 0a 0a 20 20 20 20  |r_request;..    |
00002c90  20 20 20 20 20 20 20 20  20 20 20 20 73 74 72 75  |            stru|
00002ca0  63 74 20 7b 0a 20 20 20  20 20 20 20 20 20 20 20  |ct {.           |
00002cb0  20 20 20 20 20 20 20 20  20 20 20 20 20 63 68 61  |             cha|
00002cc0  72 20 20 20 20 65 72 72  6f 72 5b 32 32 38 5d 3b  |r    error[228];|
00002cd0  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00002ce0  20 7d 20 78 66 65 72 5f  72 65 71 75 65 73 74 5f  | } xfer_request_|
00002cf0  61 63 6b 3b 0a 20 20 20  20 20 20 20 20 20 20 20  |ack;.           |
00002d00  20 20 20 20 20 0a 20 20  20 20 20 20 20 20 20 20  |     .          |
00002d10  20 20 20 20 20 20 73 74  72 75 63 74 20 7b 0a 20  |      struct {. |
00002d20  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002d30  20 20 20 20 20 20 20 63  68 61 72 20 09 62 72 6f  |       char .bro|
00002d40  77 73 65 72 5b 32 32 38  5d 3b 0a 20 20 20 20 20  |wser[228];.     |
00002d50  20 20 20 20 20 20 20 20  20 20 20 7d 20 77 65 62  |           } web|
00002d60  5f 62 72 6f 77 73 65 72  3b 0a 0a 09 09 73 74 72  |_browser;....str|
00002d70  75 63 74 20 7b 0a 09 09  20 20 20 20 20 20 20 20  |uct {...        |
00002d80  69 6e 74 09 62 61 63 6b  67 72 6f 75 6e 64 3b 0a  |int.background;.|
00002d90  09 09 20 20 20 20 20 20  20 20 69 6e 74 09 6e 6f  |..        int.no|
00002da0  72 6d 61 6c 3b 0a 09 09  20 20 20 20 20 20 20 20  |rmal;...        |
00002db0  69 6e 74 09 6c 69 6e 6b  3b 0a 09 09 20 20 20 20  |int.link;...    |
00002dc0  20 20 20 20 69 6e 74 09  76 6c 69 6e 6b 3b 0a 09  |    int.vlink;..|
00002dd0  09 20 20 20 20 20 20 20  20 69 6e 74 09 61 6c 69  |.        int.ali|
00002de0  6e 6b 3b 0a 09 09 20 20  20 20 20 20 20 20 69 6e  |nk;...        in|
00002df0  74 09 6e 6f 5f 69 6d 61  67 65 73 3b 0a 09 09 7d  |t.no_images;...}|
00002e00  20 63 6f 6c 6f 75 72 5f  73 65 6c 65 63 74 69 6f  | colour_selectio|
00002e10  6e 3b 0a 09 09 0a 09 09  73 74 72 75 63 74 20 7b  |n;......struct {|
00002e20  0a 09 09 20 20 20 20 20  20 20 20 2f 2a 20 4e 4f  |...        /* NO|
00002e30  54 45 3a 20 54 68 65 73  65 20 70 6f 69 6e 74 65  |TE: These pointe|
00002e40  72 73 20 61 72 65 20 70  6f 73 73 69 62 6c 79 20  |rs are possibly |
00002e50  69 6e 20 61 70 70 20 77  2f 73 20 2a 2f 0a 09 09  |in app w/s */...|
00002e60  20 20 20 20 20 20 20 20  2f 2a 20 4d 75 73 74 20  |        /* Must |
00002e70  75 73 65 20 57 69 6d 70  5f 54 72 61 6e 73 66 65  |use Wimp_Transfe|
00002e80  72 42 6c 6f 63 6b 20 74  6f 20 67 65 74 20 74 68  |rBlock to get th|
00002e90  65 6d 20 2a 2f 0a 09 09  20 20 20 20 20 20 20 20  |em */...        |
00002ea0  63 6f 6e 73 74 20 63 68  61 72 20 09 2a 66 72 6f  |const char .*fro|
00002eb0  6d 3b 0a 09 09 20 20 20  20 20 20 20 20 69 6e 74  |m;...        int|
00002ec0  09 09 66 72 6f 6d 73 69  7a 65 3b 0a 09 09 20 20  |..fromsize;...  |
00002ed0  20 20 20 20 20 20 63 6f  6e 73 74 20 63 68 61 72  |      const char|
00002ee0  09 2a 74 6f 3b 0a 09 09  20 20 20 20 20 20 20 20  |.*to;...        |
00002ef0  69 6e 74 09 09 74 6f 73  69 7a 65 3b 0a 09 09 7d  |int..tosize;...}|
00002f00  20 70 65 72 6d 61 6e 65  6e 74 5f 6d 6f 76 65 3b  | permanent_move;|
00002f10  0a 0a 20 20 20 20 20 20  20 20 7d 20 64 61 74 61  |..        } data|
00002f20  3b 0a 7d 20 61 72 63 77  65 62 5f 6d 73 67 3b 20  |;.} arcweb_msg; |
00002f30  2f 2a 20 75 73 65 20 61  73 20 61 20 77 69 6d 70  |/* use as a wimp|
00002f40  5f 6d 73 67 73 74 72 20  2a 2f 0a 0a 23 69 66 64  |_msgstr */..#ifd|
00002f50  65 66 20 5f 5f 63 70 6c  75 73 70 6c 75 73 0a 7d  |ef __cplusplus.}|
00002f60  0a 23 65 6e 64 69 66 0a  23 65 6e 64 69 66 0a     |.#endif.#endif.|
00002f6f