socket model example