added func to determine if socket is mapped