I asked on how I can make a multi-platform application especially how I can make the way that a socket is generated different.
I am making a basic socker application that communicates via a socket to Http protocol on top of an SSL.
The example that I made is:
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#include <winsock2.h>
#include <ws2tcpip.h>
#include <shlwapi.h>
// Need to link with Ws2_32.lib, Mswsock.lib, and Advapi32.lib
#pragma comment (lib, "Ws2_32.lib")
//#pragma
…
I would love some answer on that.