> I would be cool to be able to do:
> client: socat -v -d -d udp4-listen:localhost:53,reuseaddr,fork
> tcp:localhost:3333
> server: socat tcp4-listen:localhost:3333,reuseaddr,fork UDP:127.0.0.3:53
For this purpose you have "bind" option.
bind=<sockname>
Binds the socket to the given socket address using the bind()
system call. The form of <sockname> is socket domain dependent:
IP4 and IP6 allow the form [hostname|hostaddress][:(ser‐
vice|port)] (example), UNIX domain sockets require <filename>.
I've tested for TCP4 sockets, but theoretically it works for all
sockets. Isn't this enough?
Cheers
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]