mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-28 11:58:31 +01:00
28 lines
918 B
C++
28 lines
918 B
C++
#pragma once
|
|
#include <utils/networking.h>
|
|
#include <dsp/stream.h>
|
|
#include <dsp/types.h>
|
|
#include <server_protocol.h>
|
|
|
|
namespace server {
|
|
void setInput(dsp::stream<dsp::complex_t>* stream);
|
|
int main();
|
|
|
|
void _clientHandler(net::Conn conn, void* ctx);
|
|
void _packetHandler(int count, uint8_t* buf, void* ctx);
|
|
void _testServerHandler(uint8_t* data, int count, void* ctx);
|
|
|
|
void drawMenu();
|
|
|
|
void commandHandler(Command cmd, uint8_t* data, int len);
|
|
void renderUI(SmGui::DrawList* dl, std::string diffId, SmGui::DrawListElem diffValue);
|
|
void sendUI(Command originCmd, std::string diffId, SmGui::DrawListElem diffValue);
|
|
void sendError(Error err);
|
|
void sendSampleRate(double sampleRate);
|
|
void setInputSampleRate(double samplerate);
|
|
|
|
void sendPacket(PacketType type, int len);
|
|
void sendCommand(Command cmd, int len);
|
|
void sendCommandAck(Command cmd, int len);
|
|
}
|