tried to add even more debugging messages.
This commit is contained in:
parent
73a94fdcb0
commit
fb10f04f23
1 changed files with 3 additions and 0 deletions
|
|
@ -112,6 +112,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
printf("\nConnected client to socket: %d\n", clientEchoFD);
|
printf("\nConnected client to socket: %d\n", clientEchoFD);
|
||||||
}
|
}
|
||||||
|
printf("\nAccepted connection from new client.\n");
|
||||||
}
|
}
|
||||||
// if the client socket(s) are being written to/read from,
|
// if the client socket(s) are being written to/read from,
|
||||||
else
|
else
|
||||||
|
|
@ -135,7 +136,9 @@ int main(int argc, char **argv)
|
||||||
send(fileIter, message, sizeof(message), 0);
|
send(fileIter, message, sizeof(message), 0);
|
||||||
printf("\nMessage has been sent back to client.\n");
|
printf("\nMessage has been sent back to client.\n");
|
||||||
}
|
}
|
||||||
|
printf("\nMessage received.\n");
|
||||||
}
|
}
|
||||||
|
printf("\nDEBUG: Working or not?\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue