Server side command execution.

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 28 06:01:23 PDT 2015


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.



More information about the Digitalmars-d-learn mailing list