Exemple #1
0
        // 发送消息给用户
        public static void Send2Usr(this Connection conn, string op, Action <IWriteableBuffer> fun = null)
        {
            var buff = conn.BeginSend(ClientMessageHandler);

            buff.Write(op);
            fun.SC(buff);
            conn.End(buff);
        }