debug messages

This commit is contained in:
Charles Descamps 2025-02-05 18:24:52 -07:00
parent 04b2f1ebf7
commit e57d2f90c4

View file

@ -51,6 +51,7 @@ int main(int argc, char **argv)
// //
char *reply; char *reply;
sprintf(reply, "%d", time(NULL)); sprintf(reply, "%d", time(NULL));
printf("%s", reply);
// char *reply = time(NULL); // char *reply = time(NULL);
// char *reply = "Replied"; // char *reply = "Replied";
sendto(socketTimeFD, (const char *)reply, strlen(reply), 0, (const struct sockaddr *) &clientAddr, clientAddrLen); sendto(socketTimeFD, (const char *)reply, strlen(reply), 0, (const struct sockaddr *) &clientAddr, clientAddrLen);