I'm trying to write a client/server program under linux. The protocol is similar to FTP (using TEXT commands and answers).
My problem the following:
I'm sending from the client:
1st write: FILE file_name_1
2nd write: FILE file_name_2
but on the server's side they end up in a single packet, containing FILE file_name_1FILE file_name_2!
I've tried setting the TCP_NODELAY option on the socket, as well as usleep()ing between writes, but they don't work!