foreign socket select