Sorry if I sound like I'm just telling you to RTFM, but this is a common symptom when starting to learn 0MQ, trying to solve problems in a clumsy way when there's a simpler way that you see when you've internalized the way things work. There seems to be no alternative except to work through it.