gateway socket