Simple question here. Im a fairly experienced programmer. But ive never programed with sockets and never programed for linux. Im running fedora 9 on another computer of mine and I have a simple socket program written with a server and client connecting to each other and sending a simple message from server to client each time the client connects to the server. I totally understand all the code, but my big question is. How would you transfer files not just simple messages? I looked through the API's and there's only simple read() write() functions for sockets. Does this mean that you have to somehow open a file on the server read it into an array and have the client read the array and put the data into a file onto the clients machine? Im just looking for a hint in the right direction I don't need anyone to write the code, but for some reason it seems that transferring files through sockets is a rare topic and more people talk about sending simple messages. Any help is appreciated. Im programming in the C language.