C# 使用.NET的SocketAsyncEventArgs实现高效能多并发TCPSocket通信

这篇具有很好参考价值的文章主要介绍了C# 使用.NET的SocketAsyncEventArgs实现高效能多并发TCPSocket通信。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

简介:

 SocketAsyncEventArgs是一个套接字操作得类,主要作用是实现socket消息的异步接收和发送,跟Socket的BeginSend和BeginReceive方法异步处理没有多大区别,它的优势在于完成端口的实现来处理大数据的并发情况。

  • BufferManager类, 管理传输流的大小
  • SocketEventPool类: 管理SocketAsyncEventArgs的一个应用池. 有效地重复使用.
  •  AsyncUserToken类: 这个可以根据自己的实际情况来定义.主要作用就是存储客户端的信息.
  • SocketManager类: 核心,实现Socket监听,收发信息等操作.
  • 额外功能   1.自动检测无效连接并断开    2.自动释放资源

BufferManager类

using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Net.Sockets;  
using System.Text;  
  
namespace Plates.Service  
{  
    class BufferManager  
    {  
        int m_numBytes;                 // the total number of bytes controlled by the buffer pool  
        byte[] m_buffer;                // the underlying byte array maintained by the Buffer Manager  
        Stack<int> m_freeIndexPool;     //   
        int m_currentIndex;  
        int m_bufferSize;  
  
        public BufferManager(int totalBytes, int bufferSize)  
        {  
            m_numBytes = totalBytes;  
            m_currentIndex = 0;  
            m_bufferSize = bufferSize;  
            m_freeIndexPool = new Stack<int>();  
        }  
  
        // Allocates buffer space used by the buffer pool  
        public void InitBuffer()  
        {  
            // create one big large buffer and divide that   
            // out to each SocketAsyncEventArg object  
            m_buffer = new byte[m_numBytes];  
        }  
  
        // Assigns a buffer from the buffer pool to the   
        // specified SocketAsyncEventArgs object  
        //  
        // <returns>true if the buffer was successfully set, else false</returns>  
        public bool SetBuffer(SocketAsyncEventArgs args)  
        {  
  
            if (m_freeIndexPool.Count > 0)  
            {  
                args.SetBuffer(m_buffer, m_freeIndexPool.Pop(), m_bufferSize);  
            }  
            else  
            {  
                if ((m_numBytes - m_bufferSize) < m_currentIndex)  
                {  
                    return false;  
                }  
                args.SetBuffer(m_buffer, m_currentIndex, m_bufferSize);  
                m_currentIndex += m_bufferSize;  
            }  
            return true;  
        }  
  
        // Removes the buffer from a SocketAsyncEventArg object.    
        // This frees the buffer back to the buffer pool  
        public void FreeBuffer(SocketAsyncEventArgs args)  
        {  
            m_freeIndexPool.Push(args.Offset);  
            args.SetBuffer(null, 0, 0);  
        }  
    }  
}  

    

SocketEventPool类:

using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Net.Sockets;  
using System.Text;  
  
namespace Plates.Service  
{  
    class SocketEventPool  
    {  
        Stack<SocketAsyncEventArgs> m_pool;  
  
  
        public SocketEventPool(int capacity)  
        {  
            m_pool = new Stack<SocketAsyncEventArgs>(capacity);  
        }  
  
        public void Push(SocketAsyncEventArgs item)  
        {  
            if (item == null) { throw new ArgumentNullException("Items added to a SocketAsyncEventArgsPool cannot be null"); }  
            lock (m_pool)  
            {  
                m_pool.Push(item);  
            }  
        }  
  
        // Removes a SocketAsyncEventArgs instance from the pool  
        // and returns the object removed from the pool  
        public SocketAsyncEventArgs Pop()  
        {  
            lock (m_pool)  
            {  
                return m_pool.Pop();  
            }  
        }  
  
        // The number of SocketAsyncEventArgs instances in the pool  
        public int Count  
        {  
            get { return m_pool.Count; }  
        }  
  
        public void Clear()  
        {  
            m_pool.Clear();  
        }  
    }  
}  

 AsyncUserToken类

using System;  
using System.Collections;  
using System.Collections.Generic;  
using System.Linq;  
using System.Net;  
using System.Net.Sockets;  
using System.Text;  
  
namespace Plates.Service  
{  
    class AsyncUserToken  
    {  
        /// <summary>  
        /// 客户端IP地址  
        /// </summary>  
        public IPAddress IPAddress { get; set; }  
  
        /// <summary>  
        /// 远程地址  
        /// </summary>  
        public EndPoint Remote { get; set; }  
  
        /// <summary>  
        /// 通信SOKET  
        /// </summary>  
        public Socket Socket { get; set; }  
  
        /// <summary>  
        /// 连接时间  
        /// </summary>  
        public DateTime ConnectTime { get; set; }  
  
        /// <summary>  
        /// 所属用户信息  
        /// </summary>  
        public UserInfoModel UserInfo { get; set; }  
  
  
        /// <summary>  
        /// 数据缓存区  
        /// </summary>  
        public List<byte> Buffer { get; set; }  
  
  
        public AsyncUserToken()  
        {  
            this.Buffer = new List<byte>();  
        }  
    }  
}  

  SocketManager类

using Plates.Common;  
using System;  
using System.Collections;  
using System.Collections.Generic;  
using System.Linq;  
using System.Net;  
using System.Net.Sockets;  
using System.Text;  
using System.Threading;  
  
namespace Plates.Service  
{  
    class SocketManager  
    {  
  
        private int m_maxConnectNum;    //最大连接数  
        private int m_revBufferSize;    //最大接收字节数  
        BufferManager m_bufferManager;  
        const int opsToAlloc = 2;  
        Socket listenSocket;            //监听Socket  
        SocketEventPool m_pool;  
        int m_clientCount;              //连接的客户端数量  
        Semaphore m_maxNumberAcceptedClients;  
  
        List<AsyncUserToken> m_clients; //客户端列表  
 
        #region 定义委托  
  
        /// <summary>  
        /// 客户端连接数量变化时触发  
        /// </summary>  
        /// <param name="num">当前增加客户的个数(用户退出时为负数,增加时为正数,一般为1)</param>  
        /// <param name="token">增加用户的信息</param>  
        public delegate void OnClientNumberChange(int num, AsyncUserToken token);  
  
        /// <summary>  
        /// 接收到客户端的数据  
        /// </summary>  
        /// <param name="token">客户端</param>  
        /// <param name="buff">客户端数据</param>  
        public delegate void OnReceiveData(AsyncUserToken token, byte[] buff);  
 
        #endregion  
 
        #region 定义事件  
        /// <summary>  
        /// 客户端连接数量变化事件  
        /// </summary>  
        public event OnClientNumberChange ClientNumberChange;  
  
        /// <summary>  
        /// 接收到客户端的数据事件  
        /// </summary>  
        public event OnReceiveData ReceiveClientData;  
 
 
        #endregion  
 
        #region 定义属性  
  
        /// <summary>  
        /// 获取客户端列表  
        /// </summary>  
        public List<AsyncUserToken> ClientList { get { return m_clients; } }  
 
        #endregion  
  
        /// <summary>  
        /// 构造函数  
        /// </summary>  
        /// <param name="numConnections">最大连接数</param>  
        /// <param name="receiveBufferSize">缓存区大小</param>  
        public SocketManager(int numConnections, int receiveBufferSize)  
        {  
            m_clientCount = 0;  
            m_maxConnectNum = numConnections;  
            m_revBufferSize = receiveBufferSize;  
            // allocate buffers such that the maximum number of sockets can have one outstanding read and   
            //write posted to the socket simultaneously    
            m_bufferManager = new BufferManager(receiveBufferSize * numConnections * opsToAlloc, receiveBufferSize);  
  
            m_pool = new SocketEventPool(numConnections);  
            m_maxNumberAcceptedClients = new Semaphore(numConnections, numConnections);  
        }  
  
        /// <summary>  
        /// 初始化  
        /// </summary>  
        public void Init()  
        {  
            // Allocates one large byte buffer which all I/O operations use a piece of.  This gaurds   
            // against memory fragmentation  
            m_bufferManager.InitBuffer();  
            m_clients = new List<AsyncUserToken>();  
            // preallocate pool of SocketAsyncEventArgs objects  
            SocketAsyncEventArgs readWriteEventArg;  
  
            for (int i = 0; i < m_maxConnectNum; i++)  
            {  
                readWriteEventArg = new SocketAsyncEventArgs();  
                readWriteEventArg.Completed += new EventHandler<SocketAsyncEventArgs>(IO_Completed);  
                readWriteEventArg.UserToken = new AsyncUserToken();  
  
                // assign a byte buffer from the buffer pool to the SocketAsyncEventArg object  
                m_bufferManager.SetBuffer(readWriteEventArg);  
                // add SocketAsyncEventArg to the pool  
                m_pool.Push(readWriteEventArg);  
            }  
        }  
  
  
        /// <summary>  
        /// 启动服务  
        /// </summary>  
        /// <param name="localEndPoint"></param>  
        public bool Start(IPEndPoint localEndPoint)  
        {  
            try  
            {  
                m_clients.Clear();  
                listenSocket = new Socket(localEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);  
                listenSocket.Bind(localEndPoint);  
                // start the server with a listen backlog of 100 connections  
                listenSocket.Listen(m_maxConnectNum);  
                // post accepts on the listening socket  
                StartAccept(null);  
                return true;  
            }  
            catch (Exception)  
            {  
                return false;  
            }  
        }  
  
        /// <summary>  
        /// 停止服务  
        /// </summary>  
        public void Stop()  
        {  
            foreach (AsyncUserToken token in m_clients)  
            {  
                try  
                {  
                    token.Socket.Shutdown(SocketShutdown.Both);  
                }  
                catch (Exception) { }  
            }  
            try  
            {  
                listenSocket.Shutdown(SocketShutdown.Both);  
            }  
            catch (Exception) { }  
  
            listenSocket.Close();  
            int c_count = m_clients.Count;  
            lock (m_clients) { m_clients.Clear(); }  
  
            if (ClientNumberChange != null)  
                ClientNumberChange(-c_count, null);  
        }  
  
  
        public void CloseClient(AsyncUserToken token)  
        {  
            try  
            {  
                token.Socket.Shutdown(SocketShutdown.Both);  
            }  
            catch (Exception) { }  
        }  
  
  
        // Begins an operation to accept a connection request from the client   
        //  
        // <param name="acceptEventArg">The context object to use when issuing   
        // the accept operation on the server's listening socket</param>  
        public void StartAccept(SocketAsyncEventArgs acceptEventArg)  
        {  
            if (acceptEventArg == null)  
            {  
                acceptEventArg = new SocketAsyncEventArgs();  
                acceptEventArg.Completed += new EventHandler<SocketAsyncEventArgs>(AcceptEventArg_Completed);  
            }  
            else  
            {  
                // socket must be cleared since the context object is being reused  
                acceptEventArg.AcceptSocket = null;  
            }  
  
            m_maxNumberAcceptedClients.WaitOne();  
            if (!listenSocket.AcceptAsync(acceptEventArg))  
            {  
                ProcessAccept(acceptEventArg);  
            }  
        }  
  
        // This method is the callback method associated with Socket.AcceptAsync   
        // operations and is invoked when an accept operation is complete  
        //  
        void AcceptEventArg_Completed(object sender, SocketAsyncEventArgs e)  
        {  
            ProcessAccept(e);  
        }  
  
        private void ProcessAccept(SocketAsyncEventArgs e)  
        {  
            try  
            {  
                Interlocked.Increment(ref m_clientCount);  
                // Get the socket for the accepted client connection and put it into the   
                //ReadEventArg object user token  
                SocketAsyncEventArgs readEventArgs = m_pool.Pop();  
                AsyncUserToken userToken = (AsyncUserToken)readEventArgs.UserToken;  
                userToken.Socket = e.AcceptSocket;  
                userToken.ConnectTime = DateTime.Now;  
                userToken.Remote = e.AcceptSocket.RemoteEndPoint;  
                userToken.IPAddress = ((IPEndPoint)(e.AcceptSocket.RemoteEndPoint)).Address;  
  
                lock (m_clients) { m_clients.Add(userToken); }  
  
                if (ClientNumberChange != null)  
                    ClientNumberChange(1, userToken);  
                if (!e.AcceptSocket.ReceiveAsync(readEventArgs))  
                {  
                    ProcessReceive(readEventArgs);  
                }  
            }  
            catch (Exception me)  
            {  
                RuncomLib.Log.LogUtils.Info(me.Message + "\r\n" + me.StackTrace);  
            }  
  
            // Accept the next connection request  
            if (e.SocketError == SocketError.OperationAborted) return;  
            StartAccept(e);  
        }  
  
  
        void IO_Completed(object sender, SocketAsyncEventArgs e)  
        {  
            // determine which type of operation just completed and call the associated handler  
            switch (e.LastOperation)  
            {  
                case SocketAsyncOperation.Receive:  
                    ProcessReceive(e);  
                    break;  
                case SocketAsyncOperation.Send:  
                    ProcessSend(e);  
                    break;  
                default:  
                    throw new ArgumentException("The last operation completed on the socket was not a receive or send");  
            }  
  
        }  
  
  
        // This method is invoked when an asynchronous receive operation completes.   
        // If the remote host closed the connection, then the socket is closed.    
        // If data was received then the data is echoed back to the client.  
        //  
        private void ProcessReceive(SocketAsyncEventArgs e)  
        {  
            try  
            {  
                // check if the remote host closed the connection  
                AsyncUserToken token = (AsyncUserToken)e.UserToken;  
                if (e.BytesTransferred > 0 && e.SocketError == SocketError.Success)  
                {  
                    //读取数据  
                    byte[] data = new byte[e.BytesTransferred];  
                    Array.Copy(e.Buffer, e.Offset, data, 0, e.BytesTransferred);  
                    lock (token.Buffer)  
                    {  
                        token.Buffer.AddRange(data);  
                    }  
                    //注意:你一定会问,这里为什么要用do-while循环?   
                    //如果当客户发送大数据流的时候,e.BytesTransferred的大小就会比客户端发送过来的要小,  
                    //需要分多次接收.所以收到包的时候,先判断包头的大小.够一个完整的包再处理.  
                    //如果客户短时间内发送多个小数据包时, 服务器可能会一次性把他们全收了.  
                    //这样如果没有一个循环来控制,那么只会处理第一个包,  
                    //剩下的包全部留在token.Buffer中了,只有等下一个数据包过来后,才会放出一个来.  
                    do  
                    {  
                        //判断包的长度  
                        byte[] lenBytes = token.Buffer.GetRange(0, 4).ToArray();  
                        int packageLen = BitConverter.ToInt32(lenBytes, 0);  
                        if (packageLen > token.Buffer.Count - 4)  
                        {   //长度不够时,退出循环,让程序继续接收  
                            break;  
                        }  
  
                        //包够长时,则提取出来,交给后面的程序去处理  
                        byte[] rev = token.Buffer.GetRange(4, packageLen).ToArray();  
                        //从数据池中移除这组数据  
                        lock (token.Buffer)  
                        {  
                            token.Buffer.RemoveRange(0, packageLen + 4);  
                        }  
                        //将数据包交给后台处理,这里你也可以新开个线程来处理.加快速度.  
                        if(ReceiveClientData != null)  
                            ReceiveClientData(token, rev);  
                        //这里API处理完后,并没有返回结果,当然结果是要返回的,却不是在这里, 这里的代码只管接收.  
                        //若要返回结果,可在API处理中调用此类对象的SendMessage方法,统一打包发送.不要被微软的示例给迷惑了.  
                    } while (token.Buffer.Count > 4);  
  
                    //继续接收. 为什么要这么写,请看Socket.ReceiveAsync方法的说明  
                    if (!token.Socket.ReceiveAsync(e))  
                        this.ProcessReceive(e);  
                }  
                else  
                {  
                    CloseClientSocket(e);  
                }  
            }  
            catch (Exception xe)  
            {  
                RuncomLib.Log.LogUtils.Info(xe.Message + "\r\n" + xe.StackTrace);  
            }  
        }  
  
        // This method is invoked when an asynchronous send operation completes.    
        // The method issues another receive on the socket to read any additional   
        // data sent from the client  
        //  
        // <param name="e"></param>  
        private void ProcessSend(SocketAsyncEventArgs e)  
        {  
            if (e.SocketError == SocketError.Success)  
            {  
                // done echoing data back to the client  
                AsyncUserToken token = (AsyncUserToken)e.UserToken;  
                // read the next block of data send from the client  
                bool willRaiseEvent = token.Socket.ReceiveAsync(e);  
                if (!willRaiseEvent)  
                {  
                    ProcessReceive(e);  
                }  
            }  
            else  
            {  
                CloseClientSocket(e);  
            }  
        }  
  
        //关闭客户端  
        private void CloseClientSocket(SocketAsyncEventArgs e)  
        {  
            AsyncUserToken token = e.UserToken as AsyncUserToken;  
  
            lock (m_clients) { m_clients.Remove(token); }  
            //如果有事件,则调用事件,发送客户端数量变化通知  
            if (ClientNumberChange != null)  
                ClientNumberChange(-1, token);  
            // close the socket associated with the client  
            try  
            {  
                token.Socket.Shutdown(SocketShutdown.Send);  
            }  
            catch (Exception) { }  
            token.Socket.Close();  
            // decrement the counter keeping track of the total number of clients connected to the server  
            Interlocked.Decrement(ref m_clientCount);  
            m_maxNumberAcceptedClients.Release();  
            // Free the SocketAsyncEventArg so they can be reused by another client  
            e.UserToken = new AsyncUserToken();  
            m_pool.Push(e);  
        }  
  
  
  
        /// <summary>  
        /// 对数据进行打包,然后再发送  
        /// </summary>  
        /// <param name="token"></param>  
        /// <param name="message"></param>  
        /// <returns></returns>  
        public void SendMessage(AsyncUserToken token, byte[] message)  
        {  
            if (token == null || token.Socket == null || !token.Socket.Connected)  
                return;  
            try  
            {  
                //对要发送的消息,制定简单协议,头4字节指定包的大小,方便客户端接收(协议可以自己定)  
                byte[] buff = new byte[message.Length + 4];  
                byte[] len = BitConverter.GetBytes(message.Length);  
                Array.Copy(len, buff, 4);  
                Array.Copy(message, 0, buff, 4, message.Length);  
                //token.Socket.Send(buff);  //这句也可以发送, 可根据自己的需要来选择  
                //新建异步发送对象, 发送消息  
                SocketAsyncEventArgs sendArg = new SocketAsyncEventArgs();  
                sendArg.UserToken = token;  
                sendArg.SetBuffer(buff, 0, buff.Length);  //将数据放置进去.  
                token.Socket.SendAsync(sendArg);  
            }  
            catch (Exception e){  
                RuncomLib.Log.LogUtils.Info("SendMessage - Error:" + e.Message);  
            }  
        }  
    }  
}  

使用方法:

SocketManager m_socket = new SocketManager(200, 1024);  

m_socket.Init();  

m_socket.Start(new IPEndPoint(IPAddress.Any, 13909));  

//m_socket.Stop();

下载地址:https://download.csdn.net/download/a876106354/88563747文章来源地址https://www.toymoban.com/news/detail-728764.html

到了这里,关于C# 使用.NET的SocketAsyncEventArgs实现高效能多并发TCPSocket通信的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 【28】Kotlin语法进阶——使用协程编写高效的并发程序

    提示:此文章仅作为本人记录日常学习使用,若有存在错误或者不严谨得地方欢迎指正。 协程是Kotlin语言中很有代表性的一种并发设计模式,用于简化异步执行的代码。 协程和线程有点类似,可以简单地将它理解成一种轻量级的线程 。我们前面学习的线程是属于重量级的,

    2024年02月03日
    浏览(38)
  • .NET Core(C#)使用Titanium.Web.Proxy实现Http(s)代理服务器监控HTTP请求

    关于Titanium.Web.Proxy详细信息可以去这里仔细看看,这里只记录简单用法 NuGet直接获取Titanium.Web.Proxy 配置 与其说是配置,不如就说这一部分就是未来你需要使用的部分,想知道具体每个部分是干什么的就去看原文链接 全放过来太占地方 最后的 Console.Read(); 是一个等待函数,你

    2024年02月09日
    浏览(45)
  • C# 使用屏障来使多线程并发操作保持同步

    以下是微软官方对屏障类的介绍,System.Threading.Barrier 可用来作为实现并发同步操作的基本单元,让多个线程(参与者)分阶段并行处理目标算法。在达到代码中的屏障点之前,每个参与者将继续执行,屏障表示工作阶段的末尾;单个参与者到达屏障后将被阻止,直至所有参与者

    2024年01月24日
    浏览(35)
  • C# .NET ADO.NET介绍和如何使用

    .NET Framework 4.7.2 Visual Studio 2022 Sql server 2008 新建项目 我们看一下visual studio 里面ADO.NET文件 ADO.NET是实体数据模型,是ORM对象文件。ORM,即Object-Relational Mapping(对象关系映射)。 ORM实际上是对业务的简化。就想面向过程到面向对象的转变一样。 面向过程和面向对象 面向过程:程序

    2024年02月09日
    浏览(53)
  • C#,ASP.NET委托的使用

    【注释】: 1.【声明委托】:想调用哪里的委托就在哪里声明(第一步) 2.【委托的调用】在哪里使用,就在哪里定义委托(第三步) 3. 委托变量 和 具体方法的关联,通常是分开的(第四步) (这里是Form2调用Form1的函数)访问链接:C#跨窗体调用控件(委托回调函数使用例

    2024年02月11日
    浏览(33)
  • 【C#】.Net Framework框架使用JWT

    2023年,第31周,第2篇文章。给自己一个目标,然后坚持总会有收货,不信你试试! 本篇文章主要简单讲讲,.Net Framework框架下使用JWT的代码例子,以及他们的基本概念。 2002年微软发布了.net framework 1.0,那个时候博主刚开始玩传奇游戏,接触电脑的时间还是挺早的。 JWT(JS

    2024年02月15日
    浏览(42)
  • C# .Net Core log4net 使用方法

    一、背景 前排提示,觉得墨迹的朋友可以直接看解决方法部分! 啊,许久没有这般耗时耗力了。。。鼓捣了一下午,不断地查阅资料,终于成功把log4net配置成功了。不过,笔者对log4net的底层并不了解,这里只是简单记录学习过程,给同样的初学者提供些许方便。 二、探索

    2024年02月04日
    浏览(36)
  • C#使用.Net Core进行跨平台开发

    使用 .NET Core 进行跨平台开发是一种灵活的方法,可以在多个操作系统上运行 C# 应用程序。以下是在 C# 中使用 .NET Core 进行跨平台开发的一般步骤: 安装 .NET Core SDK : 在开始之前,需要安装适用于操作系统的 .NET Core SDK。可以从官方网站(https://dotnet.microsoft.com/download)下载

    2024年02月11日
    浏览(38)
  • c# Log4net使用介绍

    注意:将log4net.config的属性“复制到输出目录”设置为“始终复制” Log4net 是一个用于 .NET 平台的日志记录框架,它可以帮助开发者在应用程序中记录和管理日志信息,以便于调试和监控应用程序的运行情况。下面是 Log4net 的配置和使用过程及案例: 安装 log4net 可以通过 Nu

    2024年02月02日
    浏览(68)
  • 关于MSMQ(System.Messaging.MessageQueue)安装及在.NET Framework框架下的简单应用实现,以解决大并发请求问题

    提示:大并发请求队列处理及实时聊天消息也可参考本文自行实现 随着大数据的不断发展,我们实际开发的项目也开始逐渐接触到大数据大并发造成的一些问题,由于近期项目需求要满足2000并发量,经过压测发现原项目中编写的正常逻辑读写程序很卡顿,服务器环境Windows

    2024年02月06日
    浏览(33)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包