How to keep sending/receving while blocking ?