Could someone tell me a way to send only part of a char array over TCP using write()? I want to send the first 255 bytes and then as another block of data send the next 255 bytes and so on/left over instead of the entire data variable such as:
n = write(newsockfd,data,strlen(data));
Is there a way to do this?
strlen(data)with255?