// Networking
#ifndef ALLEGRO_DOS

#define NET_TYPE_OFFLINE	0
#define NET_TYPE_SERVER		1
#define NET_TYPE_CLIENT		2

#define COMMAND_QUIT		1

int check_commands(char *string);
void serverside_setup();
void clientside_setup();

NLsocket	socket[4];		// all connected client ports
NLsocket	sock_server;	// server port
NLsocket	sock_client;	// current client port
NLint		prosonicnet;	// group
NLbyte		ip_input[17];
NLushort	port;
NLaddress	addr_server;
NLaddress	addr_client;

int net_type;
char net_id[4];
char incoming_type;
char incoming_sender;
char talk_outgoing[64];
char talk_incoming[64];
char player_number;

#endif
