Skip to content

Miniproject : TSI (Teacher Student Interface) - Based on Socket programming. TSI makes it possible to let Students connect to Teacher via TSI Program (must be in same network). In the connection, there can be communication as of in form of messages or there can be sharing of txt(or program files) within one student to Teacher or Teacher to One S…

Notifications You must be signed in to change notification settings

jaypowar00/project-TSI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project-T.S.I.

Miniproject : TSI (Teacher Student Interface) - Based on Socket programming. TSI makes it possible to let Students connect to Teacher via TSI Program (must be in same network).
In the connection, there can be communication as of in form of messages or there can be sharing of txt(or program files) within One Student to Teacher or Teacher to One Student


Steps for executing Project TSI

  1. Very initial step is to run the command make all which compiles both the codes and creates their corresponding executables.
  2. The very next step, Teacher should open up 2 terminals; One for hosting the Server, Another for joining that server as a Teacher.
  3. In the first terminal, Teacher has to run command ./ser 1234 or ./ser 1234 127.0.0.1 for starting the server at specified PORT & IP ADDRESS. [You can specify any PORT & IP ADDRESS (LAN) as long as systems are in the same NETWORK ].
  4. After Entering name, Teacher has to type set-admin and hit enter and type password as admin@123 for setting Teacher Client as admin of this environment.
  5. In the second terminal, Teacher has to run command ./cli 1234 or ./cli 1234 127.0.0.1 for joining the server created in STEP 3. After that type 1 & hit enter to register yourself as Teacher. And Enter name to continue further.
  6. Now Student has to also run the command make all if on a different machine, for this example it is considered that Student is also on the same machine that's why server is created for localhost (127.0.0.1) on PORT 1234 so no need to run command make all at this moment.
  7. Now Student has to run command ./cli 1234 or ./cli 1234 127.0.0.1 just like what we did at teacher side, but this time type 2 & hit enter to register yourself as Student. Enter name and Roll Number when asked.

After These Steps, the TSI environment should be completely established !


How To Share Files?

A. Student To Teacher File Sharing

  1. Type 'send' and hit enter.
  2. Specify the Name of the File to be sent (Must be in the same directory as the executables).
  3. The file will be sent to the Admin (Teacher).

B. Teacher To Student File Sharing

  1. Type 'send' and hit enter.
  2. Specify Roll Number of Student to whom file supposed to be transfered.
  3. If the Student with a given Roll Number is present in the server, then it will ask for a filename, just specify the Name of the File which is to be shared.
  4. Hit enter and the file will be shared!

Major Bug

Sometimes, during File Sharing operation the file does not get sent over to the receiver, at that time, there is no other way to recover this but for both the parties (Teacher & Student) to restart their programs in order to restart the whole environment !

PS: I have stopped working on this Project as I did this project just to get to understand some new concepts like Multi-Threading, TCP, etc and How can we use these together to make something out of it.


Screenshots

  1. Sceenshot 1.1.png
  2. Sceenshot 1.2.png
  3. Sceenshot 2.png
  4. Sceenshot 3.png
  5. Sceenshot 4.png
  6. Sceenshot 5.1.png
  7. Sceenshot 5.2.png
  8. Sceenshot 5.3.png
  9. Sceenshot 6.1.png
  10. Sceenshot 6.2.png
  11. Sceenshot 7.1.png
  12. Sceenshot 7.2.png
  13. Sceenshot 7.3.png
  14. Sceenshot 7.4.png
  15. Sceenshot 8.1.png
  16. Sceenshot 8.2.png
  17. Sceenshot 9.1.png
  18. Sceenshot 9.2.png

Recording

Click To Download Demo Video


About

Miniproject : TSI (Teacher Student Interface) - Based on Socket programming. TSI makes it possible to let Students connect to Teacher via TSI Program (must be in same network). In the connection, there can be communication as of in form of messages or there can be sharing of txt(or program files) within one student to Teacher or Teacher to One S…

Topics

Resources

Stars

Watchers

Forks