Revision da7d6536

View differences:

net_helper-ml.c
171 171
	msgData_cb *p;
172 172
	p = (msgData_cb *)arg;
173 173
	if (p == NULL) return;
174
	send_params params = {0,0,0,0};
175
	mlSendData(connectionID,(char *)(sendingBuffer[p->bIdx]),p->mSize,p->msgType,&params);
174
	mlSendData(connectionID,(char *)(sendingBuffer[p->bIdx]),p->mSize,p->msgType,NULL);
176 175
	free(sendingBuffer[p->bIdx]);
177 176
	sendingBuffer[p->bIdx] = NULL;
178 177
//	fprintf(stderr,"Net-helper: Message # %d for connection %d sent!\n ", p->bIdx,connectionID);
......
333 332
	msgData_cb *p = malloc(sizeof(msgData_cb));
334 333
	p->bIdx = index; p->mSize = buffer_size; p->msgType = (unsigned char)buffer_ptr[0];
335 334
	int current = p->bIdx;
336
	to->connID = mlOpenConnection(to->addr,&connReady_cb,p);
335
	send_params params = {0,0,0,0};
336
	to->connID = mlOpenConnection(to->addr,&connReady_cb,p, params);
337 337
	if (to->connID<0) {
338 338
		free(sendingBuffer[current]);
339 339
		sendingBuffer[current] = NULL;
......
416 416
//	remote->addrSize = SOCKETID_SIZE;
417 417
//	remote->addrStringSize = SOCKETID_STRING_SIZE;
418 418
	remote->addr = getRemoteSocketID(rem_IP, rem_port);
419
	remote->connID = mlOpenConnection(remote->addr,&connReady_cb,NULL);
419
	send_params params = {0,0,0,0};
420
	remote->connID = mlOpenConnection(remote->addr,&connReady_cb,NULL, params);
420 421
	remote->refcnt = 1;
421 422
	return remote;
422 423
}

Also available in: Unified diff