I'm using a PUB
/SUB
design and my question is:
Can I .bind()
to a port after another socket has .connect()
-ed to it,or should I .bind()
before another socket tries to .connect()
to the same address?
In other words:
Does the order of .bind()
and .connect()
matter?
( I think this question is not specific to PUB
/SUB
but is relevant for any design ).