#include "packet.h"

/* A global memory buffer for the current network packet. */
unsigned char packetbuffer[1024], packetsend[1024];
int packetsize, packetsendsize;

static int packetpos;

/* Create a new packet. */
void Packet(char id) {
	packetsend[0] = id;
	packetsendsize = 1;
}

/* Append a byte to the packet. */
void PacketAddByte(char b) {
	packetsend[packetsendsize] = b;   
	packetsendsize++;
}

