如何在vc ++中的套接字编程中从服务器向客户端发送数据传输的确认消息 [英] how to send acknowledgement messsage of data transmission from server to client in socket programming in vc++

查看:45
本文介绍了如何在vc ++中的套接字编程中从服务器向客户端发送数据传输的确认消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

谁能让我知道如何在vc ++中的套接字编程中发送数据传输的确认消息.
即,
当数据从客户端发送到服务器时,客户端将如何确保所有数据都已准确到达服务器.

谢谢
Dev.

Hi All,

Can anyone plz let me know how to send acknowledgement messsage of data transmission in socket programming in vc++.
i,e,
When data is sent from a client to a server,how will the client make sure if all the data has reached at the server accurately.

Thanks
Dev.

推荐答案

与客户端所做的相同.检查收到的数据是否正确,格式化响应以指示成功,然后将其发送回客户端.套接字通信仅使您能够在每一端发送和接收消息,在这些消息中使用的实际协议完全取决于您.
Just do the same as the client did. Check the received data is correct, format a response to indicate success and send it back to the client. Socket communication just enables you to send and receive messages at each end, the actual protocol you use in those messages is entirely up to you.


这篇关于如何在vc ++中的套接字编程中从服务器向客户端发送数据传输的确认消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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