Socket naming and tracking in context