I am writing a c tcp client socket program. If I want to send the server a string and 2 ints can I send that in one write function or do I have to use the write function 3 times, once for each paramter? Example below
Code:write(sockfd,inputString,int1,int2,strlen(inputString)+2*sizeof(int));