I must be searching for something wrong, because i can't find this info on the MSDN or anything. I am looking for how to find the error values of some of the winsock commands. I need info on the following:

1) socket()
2) connect()
3) recv()
4) send()

I would also like to know if one of the parameters is used to check the errors... Thanks in advance!