Re-attach sockets to all resources.