Test communicating with sockets of different protocols