Server side command execution.
holo via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Sep 28 04:44:30 PDT 2015
On Monday, 28 September 2015 at 10:52:07 UTC, anonymous wrote:
> On Monday 28 September 2015 12:40, anonymous wrote:
>
>> The client probably sends a newline; i.e. buffer[0 ..
>> received] is "exit\n".
>
> Or more likely it's "exit\r\n".
I changed condition to:
if(to!string(buffer[0..received]) == "exit\n")
{
break;
}
and now it is working. Thank you all for help.
More information about the Digitalmars-d-learn
mailing list