I make a program to send / receive data to the server, and decided to make it asynchronous. I read a lot of forums, but I still don’t quite understand the sequence of actions.
Look here - I am doing a thread with the CreateEvent (...) command. Next, I have to create a socket, or is it still a "thread" (thread  = CreateThread (...)) in which to create a socket? And if I want to make a second thread, then I will need to create a second thread  = CreateThread (...)? Or another event?
Plus, sockets have their own WSACreateEvent, and in the internet they saw that they create an Event, then Thread, then in this Thread they create a WSACreateEvent ... The question is - for what?
Can you explain? :)