为什么DisableEnpoint没有关闭底层TCP会话? [英] Why DisableEnpoint is not closing underlying TCP session?

查看:58
本文介绍了为什么DisableEnpoint没有关闭底层TCP会话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


启用用户的最佳方法是什么以干净的方式登录和注销?当我禁用端点时 - 底层TCP没有关闭,但当我尝试调用EnableEndpoint时,我得到一个COMException - 0x80EE0061,INVALID_OBJECT_STATE。


解决方案

您需要关闭并清理平台对象。



What is the best way to enable the user to login and logout in a clean way?  When I disable the endpoint - the underlying TCP is not closed, but when I try to call EnableEndpoint back, I get a COMException - 0x80EE0061, INVALID_OBJECT_STATE.


解决方案

You need to close and clean up the platform object.



这篇关于为什么DisableEnpoint没有关闭底层TCP会话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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