If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: getting a binding error in server program

Well, it is already one step forward!
But why don't you want to find the meaning adn desription of this error? Don't you have MSDN? Or are you banned by Google?

BTW, this error means:

WSAEOPNOTSUPP (10045)

Operation not supported.

The attempted operation is not supported for the type of object referenced. Usually this occurs when a socket descriptor to a socket that cannot support this operation, for example, trying to accept a connection on a datagram socket.

Re: getting a binding error in server program

ok so the error i get with listen is 10045 which is:

Operation not supported. The attempted operation is not supported for the type of object referenced. Usually this occurs when a socket descriptor to a socket that cannot support this operation is trying to accept a connection on a datagram socket.

i don't know how to solve this problem. description of the error doesn't help

Re: getting a binding error in server program

You got this WSAEOPNOTSUPP (10045) trying to call function listen, so the error description in this case is much shorter:

The referenced socket is not of a type that supports the listen operation.

It means that you did something was wrong between socket creation and calling listen.
The easiest way to find out what is wrong is to compare your code with some working example (from MSDN or other sites) for listening socket.

now when i run it the error message "ERROR bind failed, Error code: 10049" displays
that error means

Cannot assign requested address.
The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local computer. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote computer (for example, address or port 0).