2025-04-28 12:25:20 +08:00
|
|
|
#pragma once
|
|
|
|
#include <XNCore/XNServiceObject_p.h>
|
2025-05-22 16:22:48 +08:00
|
|
|
#include <string>
|
|
|
|
#include <memory>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
#include <unistd.h>
|
2025-04-28 12:25:20 +08:00
|
|
|
|
2025-05-22 16:22:48 +08:00
|
|
|
struct XNUDPServicePrivate : public XNServiceObjectPrivate {
|
|
|
|
int udpSocket{-1};
|
|
|
|
std::string targetHost;
|
|
|
|
uint16_t targetPort{0};
|
|
|
|
uint16_t localPort{0};
|
2025-04-28 12:25:20 +08:00
|
|
|
};
|