Windows Socket Programming in C

后端 未结 3 1511
后悔当初
后悔当初 2020-12-16 06:06

I am taking a networking class where the Professor is literally reading the book to the class. Needless to say I have no Idea what I am doing. Our semester project is to cop

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-16 06:33

    You need to link the library Ws2_32.lib to use winsock. You also must call WSAStartup before using any other winsock functions (this isn't causing your current error, but will cause you problems once you fix the missing library issue).

提交回复
热议问题