View | Details | Raw Unified | Return to bug 197009
Collapse All | Expand All

(-)utp_file/utp_recv.cpp (-3 / +3 lines)
Lines 204-210 void utp_read(void* socket, const byte* Link Here
204
void utp_write(void* socket, byte* bytes, size_t count)
204
void utp_write(void* socket, byte* bytes, size_t count)
205
{
205
{
206
	assert(utp_socket == socket);
206
	assert(utp_socket == socket);
207
	printf("utp on_write %u\n", count);
207
	printf("utp on_write %zu\n", count);
208
	assert(false);
208
	assert(false);
209
}
209
}
210
210
Lines 364-375 int main(int argc, char* argv[]) Link Here
364
			float rate = (total_recv - last_recv) * 1000.f / (cur_time - last_time);
364
			float rate = (total_recv - last_recv) * 1000.f / (cur_time - last_time);
365
			last_recv = total_recv;
365
			last_recv = total_recv;
366
			last_time = cur_time;
366
			last_time = cur_time;
367
			printf("\r[%u] recv: %d  %.1f bytes/s  ", cur_time, total_recv, rate);
367
			printf("\r[%u] recv: %zd  %.1f bytes/s  ", cur_time, total_recv, rate);
368
			fflush(stdout);
368
			fflush(stdout);
369
		}
369
		}
370
	}
370
	}
371
371
372
	printf("\nreceived: %d bytes\n", total_recv);
372
	printf("\nreceived: %zd bytes\n", total_recv);
373
	fclose(file);
373
	fclose(file);
374
	fclose(log_file);
374
	fclose(log_file);
375
}
375
}
(-)utp_file/utp_send.cpp (-2 / +2 lines)
Lines 251-257 void UDPSocketManager::select(int micros Link Here
251
void utp_read(void* socket, const byte* bytes, size_t count)
251
void utp_read(void* socket, const byte* bytes, size_t count)
252
{
252
{
253
	assert(utp_socket == socket);
253
	assert(utp_socket == socket);
254
	printf("utp on_read %u\n", count);
254
	printf("utp on_read %zu\n", count);
255
	assert(false);
255
	assert(false);
256
}
256
}
257
257
Lines 391-397 int main(int argc, char* argv[]) Link Here
391
			float rate = (total_sent - last_sent) * 1000.f / (cur_time - last_time);
391
			float rate = (total_sent - last_sent) * 1000.f / (cur_time - last_time);
392
			last_sent = total_sent;
392
			last_sent = total_sent;
393
			last_time = cur_time;
393
			last_time = cur_time;
394
			printf("\r[%u] sent: %d/%d  %.1f bytes/s  ", cur_time, total_sent, file_size, rate);
394
			printf("\r[%u] sent: %zd/%zd  %.1f bytes/s  ", cur_time, total_sent, file_size, rate);
395
			fflush(stdout);
395
			fflush(stdout);
396
		}
396
		}
397
	}
397
	}

Return to bug 197009