add sockMap,two threads,rcv and send function