21#ifdef JUCE_GLOBAL_MODULE_SETTINGS_INCLUDED
22 #include <juce_core/juce_core.h>
24 #include <JuceHeader.h>
57 Ocp1ConnectionServer(
const juce::Thread::Priority threadPriority = juce::Thread::Priority::normal);
90 std::unique_ptr<juce::StreamingSocket> socket;
94 juce::Thread::Priority m_threadPriority;
TCP accept-loop server base class for OCP.1 connections.
int getBoundPort() const noexcept
Returns the port number the server is bound to, or -1 if not listening.
~Ocp1ConnectionServer() override
void stop()
Stops the accept-loop thread and closes the listening socket.
bool beginWaitingForSocket(int portNumber, const juce::String &bindAddress=juce::String())
Binds a TCP socket to the given port and starts the accept-loop thread.
virtual Ocp1Connection * createConnectionObject()=0
Called by the accept loop each time a new TCP client connects.
Low-level TCP socket manager for a single OCP.1 connection.
Minimal AES70 / OCP.1 TCP client/server library built on JUCE.