Issue #176 on hold

Added socket state

Kaya Kupferschmidt
created an issue

Sockets should have a state variable (enum)