Hello HF,
Hope you are doing great, I made a client server program (console based). Now I am trying to develop a GUI for server side on Visual Studio's MFC.
So far I know that I can either use winsock library (same as in my console program) or use AFXsock (special wrapper for winsock on MFC).
I need guidance which is better way to go with.
Currently I am using same winsock library in MFC, but after Accept() my program hangs untill a client connects (understandable since Accept() is a blocking call). How do I go around it, since I want my program to act normal while it waits for clients instead of going in not responding mode because of Accept() call.
Any help is appreciated, thanks a lot.
PS: I saw this project that behaves like I want but they use "afxsock.h"
https://www.codeproject.com/Articles/122...h-MFC-Part
Hope you are doing great, I made a client server program (console based). Now I am trying to develop a GUI for server side on Visual Studio's MFC.
So far I know that I can either use winsock library (same as in my console program) or use AFXsock (special wrapper for winsock on MFC).
I need guidance which is better way to go with.
Currently I am using same winsock library in MFC, but after Accept() my program hangs untill a client connects (understandable since Accept() is a blocking call). How do I go around it, since I want my program to act normal while it waits for clients instead of going in not responding mode because of Accept() call.
Any help is appreciated, thanks a lot.
PS: I saw this project that behaves like I want but they use "afxsock.h"
https://www.codeproject.com/Articles/122...h-MFC-Part
I +3 rep4rep <3
For website hacking, custom malware, private RAT source code, dumps etc contact me on TG: @yealink2
For website hacking, custom malware, private RAT source code, dumps etc contact me on TG: @yealink2

