Use this code at your own risk, concept to prove a theory.
malloc'd memory isnt nulled, transfer protocol sucks. etc.
etc.

moan and die.