Add stdin to sock app

Counterpart of usock-to-stdout