打开其他应用程序Windows Phone 8后,在后台维护TCP连接 [英] Maintain TCP Connection in background after opening other application Windows phone 8

查看:68
本文介绍了打开其他应用程序Windows Phone 8后,在后台维护TCP连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到TCP连接问题....

I am having a problem with the TCP Connection ....

我正在聊天应用程序(带图像)...文本聊天工作正常...

i am  doing a chat application (with images) ...Text chatting is working perfectly..

但是无论何时我选择照片,TCP连接都会丢失,并且会进入"Application_Deactivated"状态。事件...

But whenever i am choosing a photo the TCP connection gets lost and it is going to "Application_Deactivated" event...

我试图在"Application_Activated","Application_Launching"中再次连接。事件......但它无法正常工作

I have tried to connect again in the "Application_Activated","Application_Launching" Event..but it's not working

在我的应用程序中这样,我需要从我的应用程序转到这么多应用程序....

Like this in my app, i need to go to so many applications from my app....

是否有任何解决方案可以在整个应用程序后台维护TCP连接而不会丢失连接

Is there any solution to maintain a TCP connection throughout the application background without loosing the Connection

在此先感谢,

推荐答案

通常,应用程序无法保持套接字打开当应用程序转换为已停用或已关闭状态时。 

In general it is not possible for an application to keep a socket open when the application transitions to the Deactivated or Closed state. 

后台代理可以打开套接字,但大多数后台代理的调度和运行时间太短了......尽管与音频流相关的后台代理有特殊例外和VoIP电话。 

A background agent can open a socket but the scheduling and runtime duration for most background agents is too limited... although there are special exceptions for background agents related to Audio Streaming and VoIP calls. 


这篇关于打开其他应用程序Windows Phone 8后,在后台维护TCP连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆