-
Notifications
You must be signed in to change notification settings - Fork 204
/
Copy pathudp.h
32 lines (29 loc) · 951 Bytes
/
udp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef UDP_H_INCLUDED
#define UDP_H_INCLUDED
#include <string>
#include <map>
#include <time.h>
#include <list>
#if WIN32
#include <winsock.h>//Õâ¸öµÃ·Åbytestool.hÇ°Ãæ
#endif
#include "string.h"
#include "cJSON.h"
#include "sendmsg.h"
#include "base64.h"
#include "bytestool.h"
using namespace std;
int SendUdpReqTunnel(int sock, struct sockaddr_in servAddr,TunnelInfo *tunnelinfo);
int SendUdpPack(int sock, struct sockaddr_in servAddr,const char *msgstr);
int SendUdpPing(int sock, struct sockaddr_in servAddr);
int CheckUdpPing(int sock, struct sockaddr_in servAddr);
int SendUdpAuth(int sock,struct sockaddr_in servAddr);
int SendUdpProxy(int sock,struct sockaddr_in servAddr,char* Data,char* Url,const char* ClientAddr);
int GetUdpRemoteAddr(int localport,char *url);
int UdpClient();
int initUdp();
int CheckUdpPing(int sock);
int CheckUdpAuth(int sock);
int CheckRegTunnel(int sock);
int UdpRecv(fd_set* readSet);
#endif // UDP_H_INCLUDED