Yes, that was exactly what I was planning to do, small buffers..
that for is for the info about the sended file that I'm planning to store in a struct, so the for will for example check if that number of socket, for example, i that's equal to 1, if 1.id equals to some id, or a name, or something, then it copies the data to 1.filename..