corex: added set_send_socket() and set_recv_socket()