Partial socket implementation