I have a line of text which i have read in from a file which I wish to output to a socket. The problem that i have is that i need to append SOH to the front of the text and add CR and LF to the end of the text then send to the socket.
i have defined
Is "const int" the right thing to use?Code:const int SOH 0x01 const int CR 0x12 const int LF 0x15 ifstream file string line
I do a
How do i now put the message together and do aCode:getline(file,line)
sendto(filedescriptor, string, length....etc)