First server and client make the same port that is used to transfer files. Then give the IP address to client. Then TCP protocol has been built up. First, start server, and then start client. Client input a file name and put it into an output stream. Send this output stream to server. Server reads message and judge if the file exists. If not, send an output stream including message that “File not found!” . |
查看评论
已有0位网友发表了看法