This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CLIENT SIDE: | |
| #include <iostream> | |
| #include <winsock2.h> // хедери функцій | |
| #include <ws2tcpip.h> // inet_pton | |
| using namespace std; | |
| #pragma comment(lib,"ws2_32.lib") // реалізація бiблiотеки winsock | |
| #define SERVER_IP "127.0.0.1" // ip-адреса сервера (локальний хост) |