adding more debugging messages
This commit is contained in:
parent
ac0ee399ba
commit
1b9f53ed94
1 changed files with 2 additions and 0 deletions
|
|
@ -41,8 +41,10 @@ int main(int argc, char **argv)
|
||||||
printf("Timeserver listening on port: %d\n", TIMEPORT);
|
printf("Timeserver listening on port: %d\n", TIMEPORT);
|
||||||
while(quitFlag)
|
while(quitFlag)
|
||||||
{
|
{
|
||||||
|
printf("Started grabbing data");
|
||||||
// grab the data from the client
|
// grab the data from the client
|
||||||
receivedDataLen = recvfrom(socketTimeFD, message, BUFFER_SIZE, MSG_WAITALL, &clientAddr, &clientAddrLen);
|
receivedDataLen = recvfrom(socketTimeFD, message, BUFFER_SIZE, MSG_WAITALL, &clientAddr, &clientAddrLen);
|
||||||
|
printf("Ended grabbing data");
|
||||||
message[receivedDataLen] = '\0';
|
message[receivedDataLen] = '\0';
|
||||||
// if "time\r\n" is received, then send() back the linux epoch.
|
// if "time\r\n" is received, then send() back the linux epoch.
|
||||||
if(message == "time\r\n")
|
if(message == "time\r\n")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue