It would be nice if you would settle on a language, method and platform before asking for assistance. I assume that as all this is up in the air we are not dealing with a real world example.
You should look into using the System.Net.Sock ets namespace.
That will have objects for Socket level control, where you can attempt to create your own header for data.
Comment