home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / descent / source / main / netmisc.h < prev    next >
Text File  |  1998-06-08  |  2KB  |  51 lines

  1. /*
  2. THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
  3. SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
  4. END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
  5. ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
  6. IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
  7. SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
  8. FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
  9. CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
  10. AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
  11. COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
  12. */
  13. /*
  14.  * $Source: f:/miner/source/main/rcs/netmisc.h $
  15.  * $Revision: 2.0 $
  16.  * $Author: john $
  17.  * $Date: 1995/02/27 11:30:18 $
  18.  * 
  19.  * .
  20.  * 
  21.  * $Log: netmisc.h $
  22.  * Revision 2.0  1995/02/27  11:30:18  john
  23.  * New version 2.0, which has no anonymous unions, builds with
  24.  * Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
  25.  * 
  26.  * Revision 1.2  1994/08/09  19:31:54  john
  27.  * Networking changes.
  28.  * 
  29.  * Revision 1.1  1994/08/08  11:18:40  john
  30.  * Initial revision
  31.  * 
  32.  * 
  33.  */
  34.  
  35.  
  36.  
  37. #ifndef _NETMISC_H
  38. #define _NETMISC_H
  39.  
  40. //Returns a checksum of a block of memory.
  41. extern ushort netmisc_calc_checksum( void * vptr, int len );
  42.  
  43. //Finds the difference between block1 and block2.  Fills in diff_buffer and returns the size of diff_buffer.
  44. extern int netmisc_find_diff( void *block1, void *block2, int block_size, void *diff_buffer );
  45.  
  46. //Applies diff_buffer to block1 to create a new block1.  Returns the final size of block1.
  47. extern int netmisc_apply_diff(void *block1, void *diff_buffer, int diff_size );
  48.  
  49. #endif
  50. 
  51.