|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
|
overridevirtual |
Open a new endpoint.
| info | Endpoint configuration with id pre-assigned by subsystem. |
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.
Implements MayaFlux::Core::INetworkBackend.
Definition at line 91 of file UDPBackend.cpp.
References acquire_socket(), MayaFlux::Journal::Core, MayaFlux::Core::UDPBackendInfo::default_receive_port, MayaFlux::Core::UDPBackend::EndpointRecord::default_remote, MayaFlux::Core::UDPBackend::EndpointRecord::has_default_remote, MayaFlux::Core::EndpointInfo::id, MayaFlux::Core::UDPBackend::EndpointRecord::info, MayaFlux::Core::EndpointInfo::local_port, m_config, m_endpoints, m_endpoints_mutex, MF_ERROR, MF_INFO, MayaFlux::Journal::NetworkBackend, MayaFlux::Core::OPEN, release_socket(), MayaFlux::Core::EndpointInfo::remote_address, MayaFlux::Core::EndpointInfo::remote_port, MayaFlux::Core::EndpointInfo::role, MayaFlux::Core::SEND, MayaFlux::Core::UDPBackend::EndpointRecord::socket_state, MayaFlux::Core::EndpointInfo::state, and transition_state().
Here is the call graph for this function: