Implementing Winsock2 Function