source: protocols/oscar/ft.h @ 60d0582

Last change on this file since 60d0582 was b7d3cc34, checked in by Wilmer van der Gaast <wilmer@…>, at 2005-11-06T18:23:18Z

Initial repository (0.99 release tree)

  • Property mode set to 100644
File size: 2.5 KB
Line 
1#ifndef __OSCAR_FT_H__
2#define __OSCAR_FT_H__
3
4#define AIM_CB_FAM_OFT 0xfffe /* OFT/Rvous */
5
6/*
7 * OFT Services
8 *
9 * See non-SNAC note below.
10 */
11#define AIM_CB_OFT_DIRECTIMCONNECTREQ 0x0001/* connect request -- actually an OSCAR CAP*/
12#define AIM_CB_OFT_DIRECTIMINCOMING 0x0002
13#define AIM_CB_OFT_DIRECTIMDISCONNECT 0x0003
14#define AIM_CB_OFT_DIRECTIMTYPING 0x0004
15#define AIM_CB_OFT_DIRECTIMINITIATE 0x0005
16
17#define AIM_CB_OFT_GETFILECONNECTREQ 0x0006 /* connect request -- actually an OSCAR CAP*/
18#define AIM_CB_OFT_GETFILELISTINGREQ 0x0007 /* OFT listing.txt request */
19#define AIM_CB_OFT_GETFILEFILEREQ 0x0008    /* received file request */
20#define AIM_CB_OFT_GETFILEFILESEND 0x0009   /* received file request confirm -- send data */
21#define AIM_CB_OFT_GETFILECOMPLETE 0x000a   /* received file send complete*/
22#define AIM_CB_OFT_GETFILEINITIATE 0x000b   /* request for file get acknowledge */
23#define AIM_CB_OFT_GETFILEDISCONNECT 0x000c   /* OFT connection disconnected.*/
24#define AIM_CB_OFT_GETFILELISTING 0x000d   /* OFT listing.txt received.*/
25#define AIM_CB_OFT_GETFILERECEIVE 0x000e   /* OFT file incoming.*/
26#define AIM_CB_OFT_GETFILELISTINGRXCONFIRM 0x000f
27#define AIM_CB_OFT_GETFILESTATE4 0x0010
28
29#define AIM_CB_OFT_SENDFILEDISCONNECT 0x0020   /* OFT connection disconnected.*/
30
31struct aim_fileheader_t {
32#if 0
33        char  magic[4];         /* 0 */
34        short hdrlen;           /* 4 */
35        short hdrtype;          /* 6 */
36#endif
37        char  bcookie[8];       /* 8 */
38        short encrypt;          /* 16 */
39        short compress;         /* 18 */
40        short totfiles;         /* 20 */
41        short filesleft;        /* 22 */
42        short totparts;         /* 24 */
43        short partsleft;        /* 26 */
44        long  totsize;          /* 28 */
45        long  size;             /* 32 */
46        long  modtime;          /* 36 */
47        long  checksum;         /* 40 */
48        long  rfrcsum;          /* 44 */
49        long  rfsize;           /* 48 */
50        long  cretime;          /* 52 */
51        long  rfcsum;           /* 56 */
52        long  nrecvd;           /* 60 */
53        long  recvcsum;         /* 64 */
54        char  idstring[32];     /* 68 */
55        char  flags;            /* 100 */
56        char  lnameoffset;      /* 101 */
57        char  lsizeoffset;      /* 102 */
58        char  dummy[69];        /* 103 */
59        char  macfileinfo[16];  /* 172 */
60        short nencode;          /* 188 */
61        short nlanguage;        /* 190 */
62        char  name[64];         /* 192 */
63                                /* 256 */
64};
65
66
67
68struct aim_filetransfer_priv {
69        char sn[MAXSNLEN];
70        guint8 cookie[8];
71        char ip[30];
72        int state;
73        struct aim_fileheader_t fh;
74};
75
76#define AIM_CB_FAM_OFT 0xfffe /* OFT/Rvous */
77
78#endif /* __OSCAR_FT_H__ */
Note: See TracBrowser for help on using the repository browser.