added 'Windows compatability mode' to the code.
This commit is contained in:
parent
0876124fc5
commit
ba780689de
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ int main(int argc, char **argv)
|
||||||
message[receivedDataLen] = '\0';
|
message[receivedDataLen] = '\0';
|
||||||
printf("Message rec: %s", message);
|
printf("Message rec: %s", message);
|
||||||
// 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(strcmp(message, "time\n") == 0)
|
if(strcmp(message, "time\n") == 0 || strcmp(message, "time\r\n") == 0)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
char reply[BUFFER_SIZE];
|
char reply[BUFFER_SIZE];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue