net.h network functionaliy