added debugging messages.
This commit is contained in:
parent
571d359f08
commit
bc14a7bf19
1 changed files with 2 additions and 0 deletions
|
|
@ -48,12 +48,14 @@ int main(int argc, char **argv)
|
|||
if(message == "time\r\n")
|
||||
{
|
||||
//
|
||||
printf("recv");
|
||||
char *reply = time(NULL);
|
||||
sendto(socketTimeFD, reply, strlen(reply), 0, &clientAddr, clientAddrLen);
|
||||
}
|
||||
else if(message == "close\r\n" || message == "quit\r\n" || message == "q\r\n")
|
||||
{
|
||||
//
|
||||
printf("Server received close.");
|
||||
quitFlag = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue