instrument winsock functions