Refactored SocketDummy logic.

Might be refactored more later on.