PicoScenes API Docs
Loading...
Searching...
No Matches
UDPService.hxx
Go to the documentation of this file.
1
//
2
// Created by Zhiping Jiang on 10/23/17.
3
//
4
5
#ifndef PICOSCENES_UDPSERVICE_HXX
6
#define PICOSCENES_UDPSERVICE_HXX
7
8
#include <memory>
9
#include <chrono>
10
#include <optional>
11
12
class
UDPService
{
13
public
:
14
static
std::shared_ptr<UDPService>
getInstance
(
const
std::string &name);
15
16
virtual
size_t
sendData
(
const
uint8_t *data, uint32_t bufferLength,
const
std::string &targetIP, uint16_t targetPoint, std::optional<uint16_t> sourcePort = std::nullopt) = 0;
17
};
18
19
#endif
//PICOSCENES_UDPSERVICE_HXX
UDPService
Definition
UDPService.hxx:12
UDPService::getInstance
static std::shared_ptr< UDPService > getInstance(const std::string &name)
UDPService::sendData
virtual size_t sendData(const uint8_t *data, uint32_t bufferLength, const std::string &targetIP, uint16_t targetPoint, std::optional< uint16_t > sourcePort=std::nullopt)=0
headers
UDPService.hxx
Generated by
1.9.8