This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am studying HFJ now and i have some questions.
On page 519and 520 there are two programs on SimpleChatClient and VerySimpleChatServer. My question is chat-client and file transfer programs are different, right?bt the same concept of server client are used? and can i transfer file without ftp or http?
Soumyadeep Ganguly wrote:My question is chat-client and file transfer programs are different, right?
I don't know these two classes, but my guess is the only difference is in the actual data that is sent between the two. Unless you're talking about peer-to-peer file transfers, there's also a client-server model there.
and can i transfer file without ftp or http?
Sure. All you need to do is transfer the data from one machine to another. FTP and HTTP are only two protocols for that. Windows file sharing (a.k.a. SMB) is another protocol that can be used for this, as is NFS (for Linux / Unix). Implementing your own using direct Socket / ServerSocket pairs is also possible.