I've started using WinSock recently and now that I have it working, I am getting an error in bind() when I run it. Here is the code for bind():
Whenever I run the program it is fine until it gets there, and of course prints Failed to bind! and I cannot figure out what is wrong. If it isn't this, the full code is attached.Code:if( bind( socket, ( SOCKADDR* )( &sockAddr ), sizeof( sockAddr ) ) == SOCKET_ERROR ) { std::cout << "Failed to bind!" << std::endl; }
- SirCrono6



LinkBack URL
About LinkBacks



