Writing to a socket with hex and string characters
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?
const int SOH 0x01
const int CR 0x12
const int LF 0x15
I do a
How do i now put the message together and do a
sendto(filedescriptor, string, length....etc)