Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPF程序中TCP/IP协议,异步通讯无法接收客户端信息的问题。 #2

Open
ShangFengWang opened this issue Sep 19, 2024 · 1 comment

Comments

@ShangFengWang
Copy link

请教一个问题,为什么,自己封装的TCP/IP通信库,库中服务器类和客户端类都使用异步+回调的方式实现。在Winform应用程序中使用该库时,收发数据一切正常。在WPF中使用,使用TCP调试助手调试时: WPF中服务器对象能不停发送心跳数据到客户端TCP调试软件,但客户端TCP调试助手发送信息到服务器时,服务器类库中却没有触发ReceiveCallback,WPF中服务器对象收不到客户端发送的信息。是什么原因?该怎么处理?谢谢!
微信图片_20240919170054
微信图片_20240919170100

1726736557526

自定义服务器类:MyServer.cs
服务器开启监听与数据绑定的程序在:MainViewModel.cs中。

配置文件路径:粉饼称重系统0919\粉饼称重系统\bin\Debug\net6.0-windows\Config\xmlConfig.xml
在本机上调试时,需修改配置:
微信图片_20240919170917
Uploading 粉饼称重系统0919.zip…

@vickyqu115
Copy link
Collaborator

代码好像没有正确上传,可以再确认一下吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants