Revision 52f0fd6c

View differences:

ml/ml.c
673 673

  
674 674
			// send data recv callback to monitoring module
675 675

  
676
			(get_Recv_data_inf_cb) ((void *) &recv_data_inf);
676
//			(get_Recv_data_inf_cb) ((void *) &recv_data_inf);
677 677
		}
678 678

  
679 679
		// Get the right callback
......
689 689
			&(connectbuf[recvdatabuf[recv_id]->connectionID]->external_socketID);
690 690
		rParams.firstPacketArrived = recvdatabuf[recv_id]->firstPacketArrived;
691 691

  
692
		(receive_data_callback) (recvdatabuf[recv_id]->recvbuf + recvdatabuf[recv_id]->monitoringDataHeaderLen, recvdatabuf[recv_id]->bufsize - recvdatabuf[recv_id]->monitoringDataHeaderLen,
693
			recvdatabuf[recv_id]->msgtype, &rParams);
692
// 		(receive_data_callback) (recvdatabuf[recv_id]->recvbuf + recvdatabuf[recv_id]->monitoringDataHeaderLen, recvdatabuf[recv_id]->bufsize - recvdatabuf[recv_id]->monitoringDataHeaderLen,
693
// 			recvdatabuf[recv_id]->msgtype, &rParams);
694 694

  
695 695
		//clean up
696 696
		if (recvdatabuf[recv_id]->timeout_event) {
......
1999 1999
 * TODO might think of a better way
2000 2000
 */
2001 2001
int mlHashSocketID(socketID_handle sock) {
2002
    return sock->internal_addr.udpaddr.sin_port +
2003
			  sock->external_addr.udpaddr.sin_port;
2002
	//assert(sock);
2003
   return sock->internal_addr.udpaddr.sin_port +
2004
			sock->external_addr.udpaddr.sin_port;
2004 2005
}
2005 2006

  
2006 2007
int mlCompareSocketIDs(socketID_handle sock1, socketID_handle sock2) {

Also available in: Unified diff