Question, so i need to send \n in a packet now, but python treats it as a EOL. How can i tell it to treat \n as raw text and part of the packet exactly?
logcom = "LOGON\n Protocol-Version: 2.0\n App-type: Windows x86\n Operator: PC_CLIENT\n name: " + pal_user + "\n capabilities: 4\n"
I need to send all of it in one packet, but it treats \n as EOL when the packet has multiple lines, but not when its just LOGON\n
socket.sendall("'LOGON\n ^ SyntaxError: EOL while scanning string literal
The error^
socket.sendall('LOGON\n'), is that correct? If so, then thesendallfunction sends the whole string as is, along with whitespace characters such as\n.logcomfor us to see?