Hi,
I would like to write a script which will connect to a server. I know I have to set up a tcp connection and after that send a registration message which consists of tag, length and value fields. All fields are bytes.
I have found a package "struct" which translates string to binary format but unfortunatelly I do not see appropriate format.
How can i do that?
Thanks in advance for any help/hints!
Best regards,
I would like to write a script which will connect to a server. I know I have to set up a tcp connection and after that send a registration message which consists of tag, length and value fields. All fields are bytes.
I have found a package "struct" which translates string to binary format but unfortunatelly I do not see appropriate format.
How can i do that?
Thanks in advance for any help/hints!
Best regards,
Comment