home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / descent / source / main / spx.h < prev    next >
Text File  |  1998-06-08  |  2KB  |  68 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/ipx.h $
  15.  * $Revision: 1.3 $
  16.  * $Author: john $
  17.  * $Date: 1994/07/25 12:33:22 $
  18.  * 
  19.  * Prototype for IPX communications.
  20.  * 
  21.  * $Log: ipx.h $
  22.  * Revision 1.3  1994/07/25  12:33:22  john
  23.  * Network "pinging" in.
  24.  * 
  25.  * Revision 1.2  1994/07/20  15:58:29  john
  26.  * First installment of ipx stuff.
  27.  * 
  28.  * Revision 1.1  1994/07/19  15:43:05  john
  29.  * Initial revision
  30.  * 
  31.  * 
  32.  */
  33.  
  34. #ifndef _IPX_H
  35. #define _IPX_H
  36.  
  37. // The default socket to use.
  38. #define IPX_DEFAULT_SOCKET 0x869d
  39.  
  40. //---------------------------------------------------------------
  41. // Initializes all IPX internals. 
  42. // If socket_number==0, then opens next available socket.
  43. // Returns:    0  if successful.
  44. //                -1 if socket already open.
  45. //                -2    if socket table full.
  46. //                -3 if IPX not installed.
  47. //                -4 if couldn't allocate low dos memory
  48. //                -5 if error with getting internetwork address
  49. extern int ipx_init( int socket_number );
  50.  
  51. // Returns a pointer to 6-byte address
  52. extern ubyte * ipx_get_my_local_address();
  53.  
  54. // If any packets waiting to be read in, this fills data in with the packet data and returns
  55. // the number of bytes read.  Else returns 0 if no packets waiting.
  56. extern int ipx_get_packet_data( ubyte * data );
  57.  
  58. // Sends a broadcast packet to everyone on this socket.
  59. extern void ipx_send_broadcast_packet_data( ubyte * data, int datasize );
  60.  
  61. // Sends a packet to a certain address
  62. extern void ipx_send_packet_data( ubyte * data, int datasize, ubyte *address );
  63.  
  64. #define IPX_MAX_DATA_SIZE (534-4)
  65.  
  66. #endif
  67. 
  68.