How can I check socket state?

+1, Any progress on this?