attached to socket

its possible known what actor its attached to a socket or i must keep track of this?