admin
2025-04-08 5c9991be21f57781573f04961ec511ac2938ea3d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include<WinSock2.h> 
#include <WS2tcpip.h>
#pragma comment(lib,"ws2_32.lib")
#include <stdio.h>
#include <stdlib.h>
#include <list>
#include <iostream>
#include <atlstr.h>
using namespace std;
class SocketManager
{
private:
    static const int PORT = 9001;
    sockaddr_in clientaddr;
 
 
public:
    static string ADDR;
    static const int OCR_PORT = 9002;
    ~SocketManager();
    static string sendMsg(const char*);
    static string sendMsg(string addr,int port, const char*);
};