Example #1
0
    public void SendWorldChat2(string _Content)
    {
        SocketTask task = new SocketTask(ThreadType.MainThread, TaskResponse.Default_Response);

        task.AppendCommonParam(RequestType.SOCK_WORLDCHAT, new SockSendWorldChatParam(_Content));
        task.ErrorOccured   = SocketResp_Error;
        task.afterCompleted = SocketResp_UI;

        task.DispatchToRealHandler();
    }
Example #2
0
    //聊天Socket的请求处理
    public void RegisterChatSock()
    {
        SocketTask task = new SocketTask(ThreadType.MainThread, TaskResponse.Default_Response);

        task.AppendCommonParam(RequestType.SOCK_WORLDCHAT, new SockSendWorldChatParam(""));
        task.ErrorOccured   = SocketResp_Error;
        task.afterCompleted = SocketResp_UI;

        Core.NetEng.SockEngine.RegisterSocketTask(task);
    }
Example #3
0
    private void sendAllenTcpOpen()
    {
        SocketTask task = new SocketTask(ThreadType.MainThread, TaskResponse.Default_Response);

        task.AppendCommonParam(RequestType.SOCK_LOGIN, new SockLoginParam("656679", null, 0));

        task.ErrorOccured   = SocketResp_Error;
        task.afterCompleted = SocketRespUI;

        task.DispatchToRealHandler();
    }
Example #4
0
    public void SendWorldChatLogin()
    {
        RegisterChatSock();

        SocketTask task = new SocketTask(ThreadType.MainThread, TaskResponse.Default_Response);

        task.AppendCommonParam(RequestType.SOCK_WORLDCHATLOGIN, new SockWorldChatLoginParam(Core.Data.playerManager.PlayerID, "abc",
                                                                                            Core.Data.playerManager.NickName, Core.Data.playerManager.Lv, Core.SM.curServer.sid, (long)Core.Data.playerManager.RTData.headID));

        task.ErrorOccured   = SocketResp_Error;
        task.afterCompleted = SocketResp_UI;

        task.DispatchToRealHandler();
    }
Example #5
0
    public void SendWorldChat(string _Content)
    {
        if (SensitiveFilterManager.getInstance().check(_Content, false))
        {
            SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(75003));
            return;
        }
        if (string.IsNullOrEmpty(_Content))
        {
            SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(75002));
            return;
        }

        SocketTask task = new SocketTask(ThreadType.MainThread, TaskResponse.Default_Response);

        task.AppendCommonParam(RequestType.SOCK_WORLDCHAT, new SockSendWorldChatParam(_Content));
        task.ErrorOccured   = SocketResp_Error;
        task.afterCompleted = SocketResp_UI;
        task.DispatchToRealHandler();
        ComLoading.Open();
    }