| 0 | T | 12 | N | 
| 1 | R | 13 | J | 
| 2 | W | 14 | Z | 
| 3 | A | 15 | S | 
| 4 | G | 16 | Q | 
| 5 | M | 17 | V | 
| 6 | Y | 18 | H | 
| 7 | F | 19 | L | 
| 8 | P | 20 | C | 
| 9 | D | 21 | K | 
| 10 | X | 22 | E | 
| 11 | B | 
And if you want to get a better idea about how CRC works you can visit this old post. There is a detailed Wikipedia article too.
This is a one-year compulsory Computer Networks (5662) course for Computer Engineers at the Universidad Politécnica de Valencia.
Instructor: 
Dr. Miguel Sánchez
| 0 | T | 12 | N | 
| 1 | R | 13 | J | 
| 2 | W | 14 | Z | 
| 3 | A | 15 | S | 
| 4 | G | 16 | Q | 
| 5 | M | 17 | V | 
| 6 | Y | 18 | H | 
| 7 | F | 19 | L | 
| 8 | P | 20 | C | 
| 9 | D | 21 | K | 
| 10 | X | 22 | E | 
| 11 | B | 
$ java P2P 7123 ./ 158.42.53.17:7777
| | |
port | |
folder |
initial peer
Please note the output above shows the expected behaviour where you have three sections. On the top it is the peer list, after connect ok message that tells you the three server ports are open (p, p+1 and p+2). Next you have the list of filenames (only if your code reacts this way to an empty line query, something mine does) and in the third place you have the first 10 data bytes of the filename that appears last on your file list (FileServer.class).
$ java P2Tester 7777
>>> CONNECT OK
158.42.53.17:7777
158.42.53.17:8899
1.1.1.1:1234
P2P.class
QueryServer.class
ListManagement.class
Peers.class
FileServer.class
>>> READ FROM FILE (first ten bytes): FileServer.class
ca fe ba be 00 00 00 32 00 72
