Make socket send/recv work, by callbacks