is it necessary to do a bind before you connect. I get this error every once in a while when connecting.

10022 Socket not bound, invalid address or listen is not invoked prior to accept

but when I look for what this error means, I get this:

10022 WSAEINVAL Invalid argument or function sequence or the socket has not been bound with bind.

Thanks