DragonNest/Server/NATProbeService/probe.h
2024-12-19 09:48:26 +08:00

32 lines
No EOL
1.3 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _PROBE_H_INCLUDED
#define _PROBE_H_INCLUDED
#include <process.h>
#include <winsock.h>
#include <stdio.h>
#include <map>
#include <vector>
struct _CONADDR {
unsigned long addr;
unsigned short port;
} ;
struct _SOCKET_DATA {
SOCKADDR_IN addr;
int port;
char buff[16];
int len;
} ;
// UDP 서버
SOCKET CreateUDPSocket(int port);
void _udp_service(void* param);
SOCKET CreateTCPListenSocket(int port);
void ConnectTest(unsigned long ip, unsigned short port);
void _tcp_con_service(void* param);
void _udp_con_service(void* param);
void _tcp_service(void* param);
void probemain(int argc, char * argv[]);
#endif