d1x->d2x
[btb/d2x.git] / main / netpkt.h
1 #ifndef _NETPKTOR_H
2 #define _NETPKTOR_H
3
4 //Changed 9/19 -Geoff Coovert - moved from netpkt.c
5 //edited 03/04/99 Matt Mueller - moved to byteswap.h
6 #include "byteswap.h"
7 //#define swapint(x) x
8 //#define swapshort(x) x
9 //end edit -MM
10
11 byte out_buffer[IPX_MAX_DATA_SIZE];             // used for tmp netgame packets as well as sending object data
12 extern frame_info       MySyncPack;
13 void send_d2x_netgame_packet(ubyte *server, ubyte *node);
14 void receive_d2x_netgame_packet(ubyte *data, netgame_info *netgame, AllNetPlayers_info *netplayers);
15 //end change
16
17 void receive_netplayer_info(ubyte *data, netplayer_info *info, int d2x);
18 void send_sequence_packet(sequence_packet seq, ubyte *server, ubyte *node, ubyte *net_address);
19 void receive_sequence_packet(ubyte *data, sequence_packet *seq);
20 void send_netgame_packet(ubyte *server, ubyte *node);
21 void receive_netgame_packet(ubyte *data, netgame_info *netgame, AllNetPlayers_info *netplayers, int d2x);
22 void send_frameinfo_packet(ubyte *server, ubyte *node, ubyte *address, int short_packet);
23 void receive_frameinfo_packet(ubyte *data, frame_info *info, int short_packet);
24 void send_endlevel_packet(endlevel_info *info, ubyte *server, ubyte *node, ubyte *address);
25 void receive_endlevel_packet(ubyte *data, endlevel_info *info);
26 void swap_object(object *obj);
27
28 #endif