You can identify the socket which sent the signal by calling QObject::sender() in the slot. Just be aware that the sender is undefined if the slot is called as a normal C++ function.