Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

ew_packet.h

Go to the documentation of this file.
00001 
00002 /*
00003  *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
00004  *   CHECKED IT OUT USING THE COMMAND CHECKOUT.
00005  *
00006  *    $Id: ew__packet_8h-source.html 2161 2006-05-19 16:55:03Z paulf $
00007  *
00008  *    Revision history:
00009  *     $Log$
00009  *     Revision 1.1  2006/05/19 16:55:01  paulf
00009  *     first inclusion
00009  *
00010  *     Revision 1.1  2000/02/14 20:05:54  lucky
00011  *     Initial revision
00012  *
00013  *
00014  */
00015 
00016 
00017 /* The definition of an Earthworm UDP packet
00018    *****************************************/
00019 
00020 #ifndef PACKET_H
00021 #define PACKET_H
00022 
00023 #define UDP_SIZ   1472        /* Total length of UDP packet in bytes */
00024 #define UDP_HDR      6        /* Bytes in our header */
00025 #define UDP_DAT   1466        /* Available bytes for data */
00026 
00027 typedef struct
00028 {
00029    unsigned char  msgInst;    /* Message Installation (0=>Earthworm) */
00030    unsigned char  msgType;    /* Message Type */
00031    unsigned char  modId;      /* Id of module originating message */
00032    unsigned char  fragNum;    /* Packet number of message; 0=>first */
00033    unsigned char  msgSeqNum;  /* Message Sequence number  */
00034    unsigned char  lastOfMsg;  /* 1=> last packet of message, else 0 */
00035    char     text[UDP_DAT];    /* The cargo bay, as characters */
00036 } PACKET;
00037 
00038 #endif

Generated on Tue May 6 09:16:01 2003 for Earthworm Libs by doxygen1.3-rc3