it doesn't create a socks server, it is merely a workaround.
openssh used to support socks servers but discontinued that support some time ago.
connect.c is meant to be a replacement of the proxy command within openssh
it is not the easiest way, but it's the only one I know of..