Updated networking to use NIO

Deleting this for the time being since it will behave differently now.