updating obj c client with begginings of socket functions