mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 23:00:45 -04:00
add debug prints
This commit is contained in:
@@ -186,10 +186,13 @@ void Deci2Server::send_proto_ready(Deci2Driver* drivers, int* driver_count) {
|
||||
void Deci2Server::run() {
|
||||
int desired_size = (int)sizeof(Deci2Header);
|
||||
int got = 0;
|
||||
printf("Deci2Server::run\n");
|
||||
|
||||
while (got < desired_size) {
|
||||
assert(got + desired_size < BUFFER_SIZE);
|
||||
printf("r1\n");
|
||||
auto x = read_from_socket(new_sock, buffer + got, desired_size - got);
|
||||
printf("r1 done\n");
|
||||
if (want_exit()) {
|
||||
return;
|
||||
}
|
||||
@@ -240,7 +243,9 @@ void Deci2Server::run() {
|
||||
|
||||
// receive from network
|
||||
if (hdr->rsvd < hdr->len) {
|
||||
printf("r2\n");
|
||||
auto x = read_from_socket(new_sock, buffer + hdr->rsvd, hdr->len - hdr->rsvd);
|
||||
printf("r2 done\n");
|
||||
if (want_exit()) {
|
||||
return;
|
||||
}
|
||||
@@ -251,6 +256,7 @@ void Deci2Server::run() {
|
||||
|
||||
(driver.handler)(DECI2_READDONE, 0, driver.opt);
|
||||
unlock();
|
||||
printf("run done\n");
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user