fixed my previous very stupid mistakes.

This commit is contained in:
Charles Descamps 2025-02-05 17:37:57 -07:00
parent bc14a7bf19
commit ac0ee399ba

View file

@ -3,7 +3,7 @@
// constants
// timeserver port is 8888
#define TIMEPORT "8888"
#define TIMEPORT 8888
#define BUFFER_SIZE 1024
// prototypes
@ -38,7 +38,7 @@ int main(int argc, char **argv)
// while loop to see if the "time\r\n" has been received (recv call?)
int clientAddrLen;
int receivedDataLen;
printf("Timeserver listening on port: %s\n", TIMEPORT);
printf("Timeserver listening on port: %d\n", TIMEPORT);
while(quitFlag)
{
// grab the data from the client