/[pengfork]/pengfork/src/p3/init.c
ViewVC logotype

Diff of /pengfork/src/p3/init.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by chupa, Fri Sep 6 23:03:55 2002 UTC revision 1.3 by chupa, Mon Sep 9 22:59:42 2002 UTC
# Line 23  Line 23 
23  #include "buffer.h"  #include "buffer.h"
24    
25  #include "p3/init.h"  #include "p3/init.h"
26  #include "p3/p3.h"  #include "p3/header.h"
27    #include "p3/out.h"
28    
29  void  void
30  p3_send_init_packet (buffer)  p3_send_init_packet ()
      buffer_t *buffer;  
31  {  {
32    p3_init30_t init_data;    p3_init30_t init_data;
33    
# Line 38  p3_send_init_packet (buffer) Line 38  p3_send_init_packet (buffer)
38    init_data = (p3_init30_t)    init_data = (p3_init30_t)
39    {    {
40      0x03,                       /* plateform = PC */      0x03,                       /* plateform = PC */
41        139,                      /* version is an AOL 3.0 */      139,                      /* version is an AOL 3.0 */
42        109,                      /* subversion */      109,                      /* subversion */
43        0,                        /* unused */      0,                        /* unused */
44        16,                       /* machinmem always 16 */      16,                       /* machinmem always 16 */
45        0,                        /* appmem always 0 */      0,                        /* appmem always 0 */
46        0,                        /* pctype always 0 */      0,                        /* pctype always 0 */
47        5,                        /* release_month alway 5 */      5,                        /* release_month alway 5 */
48        15,                       /* release_day alway 15 */      15,                       /* release_day alway 15 */
49        0,                        /* customer_class always 0 */      0,                        /* customer_class always 0 */
50        0x4db26e25,               /* timestamp */      0x4db26e25,               /* timestamp */
51        0x00c0,                   /* dos version :) */      0x00c0,                   /* dos version :) */
52        0xc014,                   /* flags */      0xc014,                   /* flags */
53        8,                        /* video (8=??) */      8,                        /* video (8=??) */
54        5,                        /* processor (5=??) */      5,                        /* processor (5=??) */
55        0,                        /* media ??? */      0,                        /* media ??? */
56        0x00000a04,               /* windows version :) */      0x00000a04,               /* windows version :) */
57        1,                        /* windows mode 1=enhanced :) */      1,                        /* windows mode 1=enhanced :) */
58        1024, 768, 65535,         /* Resolution 1024x768, 16/24 bits */      1024, 768, 65535,         /* Resolution 1024x768, 16/24 bits */
59        0,                        /* filler always 0 */      0,                        /* filler always 0 */
60        0,                        /* region */      0,                        /* region */
61        LANGUAGE_FRENCH,          /* the language */      LANGUAGE_FRENCH,          /* the language */
62        0x17                      /* connection speed */      0x17                      /* connection speed */
63    };    };
64    p3_put_packet (buffer, TYPE_INIT, (char *) &init_data, sizeof (init_data));    p3_put_packet (TYPE_INIT, (char *) &init_data, sizeof (init_data));
 }  
   
 void  
 p3_recv_init_packet (data, data_size)  
      char *data;  
      size_t data_size;  
 {  
   /*  
    *  We should never receive an init packet  
    *  What to do if we receive one?  
    */  
65  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26