First of all : how does the recipient know the length of the file name? One write on the sender side can generate many reads on receiver side and vice versa.