Add multithreaded sending and receiving.

Using single socket option