Server side command execution.
holo via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Sep 28 20:17:43 PDT 2015
On Monday, 28 September 2015 at 13:01:25 UTC, Adam D. Ruppe wrote:
> On Monday, 28 September 2015 at 11:44:32 UTC, holo wrote:
>> if(to!string(buffer[0..received]) == "exit\n")
>
> You shouldn't need that to!string by the way. I believe that
> will work just comparing the buffer directly.
>
> Converting to string is more important when you are storing a
> copy than just comparing it.
Yep it it like you wrote. Thank you for advice.
More information about the Digitalmars-d-learn
mailing list