[英]Disconnecting From SUP
My project supports two type of Connection viz SUP & Web Service. 我的项目支持两种类型的连接,即SUP和Web服务。 If user selects Web Service, connection to SUP should be disconnected.
如果用户选择Web服务,则应断开与SUP的连接。 I use [SUPMessageClient stop] to disconnect.
我使用[SUPMessageClient stop]断开连接。 This functions stops the SUP, but when I try to connect to SUP again using [SUPMessageClient start] or [SUPMessageClient restart] none of the methods of call back handler gets called.
此功能将停止SUP,但是当我尝试使用[SUPMessageClient start]或[SUPMessageClient restart]再次连接到SUP时,不会调用任何回调处理程序的方法。 Is this right way to disconnect from SUP?
这是与SUP断开连接的正确方法吗? If not then what is right way?
如果没有,那正确的方法是什么? Thanks in advance.
提前致谢。
Are u changing the network??? 您要更改网络吗??? If Yes then you must know that changing the network in between the running application is not possible.
如果是,那么您必须知道不可能在正在运行的应用程序之间更改网络。 If NO then you can create a MBO of web service and can use in your project
如果否,那么您可以创建Web服务的MBO并可以在您的项目中使用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.