Swift socket library