duplicate socat definition