defined _WINSOCK_DEPRECATED_NO_WARNINGS to use deprecated winsock function