Hi there,

I'm working on a client server small applicaion for file sharing. I can connect and exchange text data but I'dont know how to transfere whole file from server to client and vice versa using UDP

please, give me just a small example or any reference that I can follow,,,,, I'm waiting

Nope, no code..

UDP is not generally a good idea to use for transfers, as it is connectionless, it doesnt guarentee that the other end receives your data.

As long as you set up a protocol such as FILE <size> <name> <DATA>

you send exactly that.

its up to you and your app as how best to implement it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.