Server side command execution.

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 28 03:40:14 PDT 2015


On Monday 28 September 2015 11:59, holo wrote:

> I changed my condition to:
> 
> if(to!string(buffer[0..received]) == "exit")
> 	{
> 		
> 		break;
> 	}
> 
> 
> But it still dint help.

The client probably sends a newline; i.e. buffer[0 .. received] is "exit\n".


More information about the Digitalmars-d-learn mailing list