Removed unused import
Factorized code
Server: Sended file's metadata
Client: Received file's metadata