microsoft particular code for socket.