Revision b712fc10

View differences:

net_helper-ml.c
14 14

  
15 15
#include "net_helper.h"
16 16
#include "ml.h"
17
#include "ml_helpers.h"
18 17

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

  
......
452 451
		return 0;
453 452
}
454 453

  
454
socketID_handle getRemoteSocketID(const char *ip, int port) {
455
	char str[SOCKETID_STRING_SIZE];
456
	socketID_handle h;
455 457

  
458
	snprintf(str, SOCKETID_STRING_SIZE, "%s:%d-%s:%d", ip, port, ip, port);
459
	h = malloc(SOCKETID_SIZE);
460
	mlStringToSocketID(str, h);
456 461

  
462
	return h;
463
}
457 464

  
458 465
struct nodeID *create_node(const char *rem_IP, int rem_port) {
459 466
	struct nodeID *remote = malloc(sizeof(nodeID));

Also available in: Unified diff