Example #1
0
    public void OnPause()
    {
        SocketTask task = new SocketTask(ThreadType.BackGround);

        task.AppendCmdParam(InternalRequestType.HOLDING_ON);
        HandleInternalTask(task);
    }
Example #2
0
    public void Dispose()
    {
        SocketTask task = new SocketTask(ThreadType.BackGround);

        task.AppendCmdParam(InternalRequestType.SHUT_DOWN);
        HandleInternalTask(task);
    }
Example #3
0
    public void CloseWorldChatSocket()
    {
        SocketTask task = new SocketTask(ThreadType.MainThread, TaskResponse.Default_Response);

        task.AppendCmdParam(InternalRequestType.SHUT_DOWN);
        task.DispatchToRealHandler();
    }
Example #4
0
    private void SendAllenTcpClose()
    {
        SocketTask task = new SocketTask(ThreadType.MainThread, TaskResponse.Default_Response);

        task.AppendCmdParam(InternalRequestType.SHUT_DOWN);

        task.DispatchToRealHandler();
    }
Example #5
0
 void ICore.Dispose()
 {
     if (httpEngine != null)
     {
         HttpTask shutdownTask = new HttpTask(ThreadType.BackGround, TaskResponse.Default_Response);
         shutdownTask.AppendCmdParam(InternalRequestType.SHUT_DOWN);
         httpEngine.sendHttpTask(shutdownTask);
     }
     // Socket is still empty
     if (SockEngine != null)
     {
         SocketTask shutdownTask = new SocketTask(ThreadType.BackGround, TaskResponse.Default_Response);
         shutdownTask.AppendCmdParam(InternalRequestType.SHUT_DOWN);
         SockEngine.sendSocketTask(shutdownTask);
     }
 }