add functions inet_send() and inet_wait_reply().

this compiles clean but is completley untested.