Introduction to the Sockets API

Mike Ash: When reading and writing data to a socket, you must write your code to accept reading or writing less data than requested. The read and write function calls return the number of bytes actually read or written. You can get away with ignoring this value in a lot of situations, but not so … Continue reading Introduction to the Sockets API