Emveepee.Widgets.ProfilerSocket.SendCommand C# (CSharp) 메소드

SendCommand() 개인적인 메소드

private SendCommand ( string cmd ) : string
cmd string
리턴 string
        string SendCommand(string cmd)
        {
            byte[] buffer = System.Text.Encoding.ASCII.GetBytes (cmd);
            NetworkStream stream = Stream;
            stream.Write (buffer, 0, buffer.Length);
            buffer = new byte [1024];
            int cnt = stream.Read (buffer, 0, buffer.Length);
            return System.Text.Encoding.ASCII.GetString (buffer, 0, cnt);
        }