Add read() to socketwrapper. Metze please check.