Hello there,
I am creating a advanced Chat with client and server. I want to create file transfering into application. For example every client connected in chat, can choose and send a file to the server or choose the user online on the chat and send a file to him. How can I do it? I have seen few codes but I don't know how can I use it. I think that file transfering can be done easier than methods which I saw. I have seen some code which is easy to implements, to use and not too long, but I can't find it again.
Client sending message to the server, send packets to server, in every "message to server" is header of type message (like user connected, user send message, user disconnected..). I send that method before the main message like: "type|main message". Server interprets that message from client and looks at "type" so server knows what do. But if I send file how can I inform that I will send a file?
Can you give me some code of implement file transfering?
Best regards.
Bookmarks