You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
296 B
C++
20 lines
296 B
C++
#pragma once
|
|
#include <stdio.h>
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
class CYHMudpSend
|
|
{
|
|
public:
|
|
CYHMudpSend();
|
|
~CYHMudpSend();
|
|
public:
|
|
WSADATA wsaData;
|
|
SOCKET sock;
|
|
int n;
|
|
sockaddr_in addr;
|
|
public:
|
|
bool initMUDP(const char* IP, u_short Port);
|
|
bool SendData(BYTE* const,int);
|
|
};
|
|
|