Originally Posted by
fikr
using connectionless Socket
And for "connectionless Socket" you mean "datagram" (UDP) socket, isn't it? You need DatagramSocket/DatagramPacket from java.net package.
Originally Posted by
fikr
The client transfers each unit of the file to the server and but there is no acknowledgment required from the server side. did not match with any Answers results.
Yes, with datagram sockets you don't have any acknowledge by itself, packets can arrive, never arrive, arrive duplicated (for some networking reasons) and also, more important, arrive
not in the same order as they are sent.
You must be very careful, at least (take this as a hint) put an incremental counter in each packet, so that the receiver can know the order of packets and also if some packet is lost. Otherwise a "File Transfer Protocol" in this way is totally pointless.