如何通过c#.net中的Socket通信重新传输消息 [英] How to Re-transmitting message via Socket communication in c#.net

查看:91
本文介绍了如何通过c#.net中的Socket通信重新传输消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



如果服务器超时或网络出现故障,如何使用c#.net中服务器和客户端之间的套接字通信重新传输消息。我们如何在一段时间后重新发送消息。





提前致谢

Guru

解决方案

与第一次发送的方式相同。

如果问题是某段时间则使用计时器。

Hi All

How to Re-transmitting message using socket communication between server and Client in c#.net, if the server time outs or networks fails. How do we resend the message after certain time period.


Thanks in advance
Guru

解决方案

The same way you sent it the first time.
If the problem is the certain time period then use a timer.


这篇关于如何通过c#.net中的Socket通信重新传输消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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