---
# System prepended metadata

title: 95-702 Distributed Systems Project 2

---

# 95-702 Distributed Systems Project 2
### Author Le-Hao, Hsu (Gavin Hsu)
### Andrew Id: lehaoh

## Task 0
* Project2Task0Client
    ![](https://i.imgur.com/qvXjsr1.png)

* Project2Task0Server
    ![](https://i.imgur.com/oiP82ew.png)

* Project2Task0Client&ServerConsole
    ![](https://i.imgur.com/rwXMHH8.png)

## Task 1
* Project2Task1Eavesdropper
    ![](https://i.imgur.com/J32M1uH.png)

* Project2Task1ThreeConsoles (correct server)
    ![](https://i.imgur.com/3ELoWgt.png)

* Project2Task1ThreeConsoles (malicious player)
    ![](https://i.imgur.com/kpg2Bng.png)

## Task 2
* Project2Task2Client
    ![](https://i.imgur.com/aMo29lR.png)
    
* Project2Task2Server
    ![](https://i.imgur.com/91txVZt.png)


* Project2Task2Server&ClientConsole
    ![](https://i.imgur.com/3GpPwRv.png)

    ![](https://i.imgur.com/oQMhGmD.png)



## Task 3
* Project2Task3Client
    ![](https://i.imgur.com/9DFDSOb.png)
    ![](https://i.imgur.com/qdb2RTS.png)

* Project2Task3Server
    ![](https://i.imgur.com/LUYjJt0.png)

* Prpject2Task3Client&ServerConsole
    * Client 1
        ![](https://i.imgur.com/zUlpc75.png)
        
    * Server Console from Client 1
        ![](https://i.imgur.com/rakGjeR.png)
        
    * Client 2
        ![](https://i.imgur.com/cfrneNn.png)
        
    * Server Console from Client 2
        ![](https://i.imgur.com/iAESqTv.png)
        
    * Client 3
        ![](https://i.imgur.com/pZHly4l.png)
        
    * Server Console from Client 3
        ![](https://i.imgur.com/WyV7nDb.png)
        
    * Client 1, 2, 3 Console after Rerun the Program
        ![](https://i.imgur.com/gva2F09.png)
        
    * Server Console after Rerun the Program
        ![](https://i.imgur.com/5dGawT1.png)

## Task 4
* Project2Task4Client
    ![](https://i.imgur.com/ZaTGK7T.png)
    ![](https://i.imgur.com/fX6pMxm.png)


* Project2Task4Server
    ![](https://i.imgur.com/OASOEQZ.png)
    ![](https://i.imgur.com/bFDnmUD.png)


* Prpject2Task4Client&ServerConsole
    * Client 1
        ![](https://i.imgur.com/cTlZKh7.png)
        
    * Server Console from Client 1
        ![](https://i.imgur.com/4NL2iT5.png)
        
    * Client 2
        ![](https://i.imgur.com/AH3UE0t.png)

    * Server Console from Client 2
        ![](https://i.imgur.com/iAESqTv.png)
        
    * Client 3
        ![](https://i.imgur.com/PqByHc1.png)
        
    * Server Console from Client 3
        ![](https://i.imgur.com/WyV7nDb.png)
        
    * Client 1, 2, 3 Console after Rerun the Program
        ![](https://i.imgur.com/gkfu07f.png)
        
    * Server Console after Rerun the Program
        ![](https://i.imgur.com/5dGawT1.png)
        
## Task 5
* Project2Task5Client
    ![](https://i.imgur.com/1dn0lQC.png)
    
    ![](https://i.imgur.com/M97otcC.png)
    
    ![](https://i.imgur.com/YVGDj0w.png)
    
    ![](https://i.imgur.com/lZnJIGk.png)
    
    ![](https://i.imgur.com/kLHOa9n.png)
    
    ![](https://i.imgur.com/FtFK59y.png)



* Project2Task5Server
    ![](https://i.imgur.com/XNSipzv.png)

    ![](https://i.imgur.com/OsIvqXC.png)
    
    ![](https://i.imgur.com/CO5PJrG.png)

    * Client&Server 1 Console
        ![](https://i.imgur.com/jbn3eYo.png)

    * Client&Server 2 Console
        ![](https://i.imgur.com/YLohy4P.png)
    
    * Client&Server 3 Console
        ![](https://i.imgur.com/w9Ock1m.png)

