home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Snippets / PReadDDP / PReadDDP.h < prev   
Encoding:
C/C++ Source or Header  |  1990-08-22  |  704 b   |  28 lines  |  [TEXT/KAHL]

  1. #define _H_PReadDDP
  2.  
  3. typedef struct DDPPacket{
  4.     Boolean                        PacketReceived;
  5.     unsigned char            LAPDstNode;
  6.     unsigned char            LAPSrcNode;
  7.     unsigned char            LAPProtoType;
  8.     unsigned short        Unused                    : 2;
  9.     unsigned short        HopCount                : 4;
  10.     unsigned short        DatagramLength    : 10;
  11.     unsigned short        CheckSum;
  12.     unsigned short        DstNet;
  13.     unsigned short        SrcNet;
  14.     unsigned char            DstNode;
  15.     unsigned char            SrcNode;
  16.     unsigned char            DstSocket;
  17.     unsigned char            SrcSocket;
  18.     unsigned char            DDPProtoType;
  19.     unsigned char            Data[586];
  20. } DDPPacket;
  21.  
  22. #ifndef _No_PReadDDP_Prototypes_
  23.  
  24. void PReadDDP(Byte SocketNum, DDPPacket *PacketBuff, Boolean Async);
  25. void PReadDDPFlush(Byte SocketNum);
  26. void PReadDDPListener(void);
  27.  
  28. #endif