add WPF socket code for the 4th time