Esempio n. 1
0
        static void Main(string[] args)
        {
            AsyncSocketServer ass = new AsyncSocketServer();

            ass.Connect("127.0.0.1", 9999);
            string buffer = "大大声的";

            byte[] bufferUTF8 = Encoding.UTF8.GetBytes(buffer);
            ass.SendCommand(bufferUTF8, 0, bufferUTF8.Length);
            Console.ReadKey();
        }