Socket examples