Implements multiple client for stream2socket

Also works for reverse connection mode although multiple
clients makes no sense in this case.