socket learning with xcode