Nio switch
Complete functional switch to nio sockets.