Revision ece5c501 som/net_helper-ml.c

View differences:

som/net_helper-ml.c
17 17

  
18 18
#include "msg_types.h"/**/
19 19

  
20

  
21
#ifdef MONL
22
#include "mon.h"
23
#include "grapes_log.h"
24
#include "repoclient.h"
25
#include "grapes.h"
26
#endif
27

  
28

  
20 29
/**
21 30
 * libevent pointer
22 31
 */
......
33 42
	socketID_handle addr;
34 43
	int connID;	// connection associated to this node, -1 if myself
35 44
	int refcnt;
45
#ifdef MONL
46
	//n quick and dirty static vector for measures TODO: make it dinamic
47
	MonHandler mhs[10];
48
	int n_mhs;
49
#endif
36 50
//	int addrSize;
37 51
//	int addrStringSize;
38 52
} nodeID;
......
330 344
		return NULL;
331 345
	}
332 346

  
347
#ifdef MONL
348
	void *repoclient;
349
	repInit("");
350
	repoclient = repOpen("repository.napa-wine.eu:9832");
351
	if (repoclient == NULL) fatal("Unable to initialize repoclient");
352
	monInit(base, repoclient);
353
#endif
354

  
333 355
	while (me->connID<-1) {
334 356
	//	event_base_once(base,-1, EV_TIMEOUT, &t_out_cb, NULL, &tout);
335 357
		event_base_loop(base,EVLOOP_ONCE);

Also available in: Unified diff