I need a network structure that can send raw data such as 0x01. or any raw data that I need to send to the server. Not just an HTTP request. I don't seem to see such network infrastructures. In addition, if there is currently no one. How will I write sockets? I don't seem to understand. therefore I am looking for an existing structure. Thanks for any help. I tried using sockets, but I was unable to convert CFArrayRef. I tried many things, But, it crashed every time I tested. So, I'm running out of options, but for using a ready-made structure.
Note that I do not want to do just a query like:
POST / HTTP/1.1 Host: localhost Content-Length: 4 0x01
No, I would like to send RAW data, so the following message will be sent to the remote server via the socket.
0x01
This would not be visible raw text, however it would be converted to a data string, then sent. I know how to convert most of the material I need to do, send it and receive an answer I need a framework or something that works. Any online tutorials or examples of how to do something like this that I can change to fit my needs are welcome.
How to send raw data to a socket? Where can I find such a structure? Can you provide tutorials that I can change to fit my needs?
source share