请问在我的客户端/服务器应用程序中,我可以在哪里获得从客户端到服务器传输文件的路由? [英] Please where can I get a routing for transmiting files from client to server in my client/server application?

查看:61
本文介绍了请问在我的客户端/服务器应用程序中,我可以在哪里获得从客户端到服务器传输文件的路由?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在客户机/服务器应用程序中,请问在哪里可以获得用于从客户机到服务器传输文件的路由?
我正在使用Winsock编写客户端/服务器Windows程序.我需要将文件从客户端传输到服务器.最初,我想使用sendFile函数,但是发现没有相应的receiveFile函数.有人建议我使用ftp.因此,我想知道在哪里可以得到一个简单的代码,用于从客户端向服务器传输文件,反之亦然;也许在另外一个地方,我可以获取一个可以与传输文件功能一起使用的自定义ReceiveFile函数.

Please where can I get a routing for transmiting files from client to server in my client/server application?
I am writing a client/server windows program using winsock. I need to trasmit files from client to server. Initially I wanted to use transmitFile function , but discovered that there is no corresponding receiveFile function. Someone suggested that I use ftp. So I wish to know where I can get a smple code fortransmitting files from client to server and vice versa, and perhaps in addition a where I can get a custom ReceiveFile function that can work with transmit file function.

推荐答案

FTP客户端类如何?

在服务器上,只需启用并设置FTP.它是Unix和Linux中的标准服务.
How about FTP Client Class?

On the server, just enable and setup FTP. It''s a standard service in Unix and Linux.


在您的客户端/服务器应用程序中? ...这意味着您已经拥有一个可以将数据从A点传输到B点的应用程序,在这种情况下,发送文件就像发送任何其他类型的数据一样.如果建立了套接字,那么您要做的就是加载文件(可能是成块的)并通过套接字传输它.
In you client/server application? ...that sort of implies you already have an application that can transmit data from point A to point B, in which case, sending files is just like sending any other type of data. If you have a socket established, all you have to do is load up your file (probably in chunks) and transmit it across the socket.


这篇关于请问在我的客户端/服务器应用程序中,我可以在哪里获得从客户端到服务器传输文件的路由?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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