add functions to send and receive files through socket connection
add functions to send and receive files through socket connection