/* ************************************************************************** */
/* ****************************** variables ********************************* */
/* ************************************************************************** */

#if !defined(_MPSCLIENT_VARS_H_INCLUDED_)
#define _MPSCLIENT_VARS_H_INCLUDED_

#include "MPSClient_defs.h"

#if defined(DEFINE_VARIABLES)
	#define EXTERNAL_VARIABLE
#else
	#define EXTERNAL_VARIABLE extern
#endif

EXTERNAL_VARIABLE unsigned short int conn_port;
EXTERNAL_VARIABLE int conn_socket, exit_client, exit_semaphore_waiting, thread_created;
EXTERNAL_VARIABLE u_long pid;

EXTERNAL_VARIABLE struct sockaddr_in conn_name;
EXTERNAL_VARIABLE struct hostent *hostinfo;
EXTERNAL_VARIABLE pthread_mutex_t thread_mutex, send_mutex;
EXTERNAL_VARIABLE sem_t exit_semaphore;

EXTERNAL_VARIABLE thread_semaphore *thread_semaphores;

EXTERNAL_VARIABLE td_buffer_struct td_buffer;

#if defined(__MINGW32__)
EXTERNAL_VARIABLE WORD wVersionRequested;
EXTERNAL_VARIABLE WSADATA wsaData;
#endif

#endif
