Started networking

Some basics network functions have been written. Compiles, but has
trouble connecting.