GroupChat: Chat and File Transfer

08:55  PM

This is getting more and more fun!! After initially establishing a connection between two computers, and having every user view names of all other connected users, I thought of moving towards file transfer.

In between that, I had to make quite a few rounds between two laptops to run the changes. But Kudos to @Govind for suggesting ssh! With ssh you can access any other computer in your network, via your own computer. So I only need to run some linux commands to copy the file in other computer and run it there.

So, I first established da connection via UDP sockets between two different computers. Then, whenever a user wishes to transfer a file to another user, he just needs to click on the user name, and he gets a file picker box. After picking the file, the file begins to get transferred to the destination over a TCP reliable connection. The user also gets visual cue about the amount of file transferred and speed at which file transfer is happening. 

Below is the video of the process..



Comments

Popular posts from this blog

WebGL - Perspective

WebGL - Orthographic 3D

Cursor and Serial Ports