Why are there WSA pendants for socket(), connect(), send() and so on, but not for closesocket()?

Viewed 6669

I'm going to try to explain what I mean using a few examples:

  • socket() -> WSASocket()
  • connect() -> WSAConnect()
  • send() -> WSASend()
  • sendto() -> WSASendTo()
  • recv() -> WSARecv()
  • recvfrom() -> WSARecvFrom()
  • ...
  • closesocket() -> WSA???()

This is nothing that matters much, but is still something that gives me a splitting headache.

4 Answers
Related