Made distinct classes for incoming and outgoing connections