def create_bound_pair(self, type1, type2,
                          interface='tcp://127.0.0.1'):
        s1 = zmq.Socket(self.context, type1)
        s1.setsockopt(zmq.LINGER, 5)

        s2 = zmq.Socket(self.context, type2)
        s2.setsockopt(zmq.LINGER, 5)

        port=3333
        s1.bind('%s:%s' % (interface, port))
        s2.connect('%s:%s' % (interface, port))

        self.sockets.extend([s1,s2])
        return s1, s2
Remove specified child from our children.
dataset/ETHPy150Open felipecruz/zmqpy/zmqpy/tests/pyzmq_tests/__init__.py/BaseZMQTestCase.create_bound_pair--crossover with--dataset/ETHPy150Open enthought/mayavi/mayavi/core/base.py/Base.remove_child