Better client and dummy_server versions. strcasestr replaced with strncmp for better distinguishment between messages.