MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ open_endpoint()

virtual uint64_t MayaFlux::Core::INetworkBackend::open_endpoint ( const EndpointInfo info)
pure virtual

Open a new endpoint.

Parameters
infoEndpoint configuration with id pre-assigned by subsystem.
Returns
The endpoint id on success, or 0 on failure.

The subsystem assigns the id before calling this. The backend stores and uses it for subsequent operations.

For UDP: binds a local port and/or stores a default remote target. For TCP: connects to a remote host, or begins listening on a port. Outbound connect may block. Use co_open_endpoint on the service for non-blocking connect. For SHM: opens or creates a named shared memory segment.

Implemented in MayaFlux::Core::TCPBackend, and MayaFlux::Core::UDPBackend.