Add a according write to port on socat