SOCKET stuff and updateFramebufferaddr fix