detecting if socket is active...