Halyri - Server
0.9.1
|
Media broker service core for use with the UdpMediaClientSocket instances. Implements ping reply and simple routing mechanism. Accepts routing configuration packets (ControlPacket). For every guid, there can be a single target guid to which all MediaHeaderPackets and MediaContinuationPackets from that guid are sent. If there is no valid target mapping for the guid specified in a received media packet, the packet is silently ignored. More...
Public Member Functions | |
UdpMediaRelayServerCore (int port) | |
Initializes a new UdpMediaRelayServerCore that uses the specified port number at the local machine to provide media broker services over UDP. More... | |
void | Enable () |
Enables this UdpMediaRelayServerCore to accept routing packets, to reply to client ping packets and to perform media packet receiving and routing. More... | |
void | Disable () |
Disable this UdpMediaRelayServerCore and releases the underlying UDP socket. After disabling, this instance will no longer receive or send any packets. More... | |
void | EnableRouting (string sourceGuid, string targetGuid) |
Enables routing of received media packets that have the sourceGuid as their sender Guid to the client that uses the targetGuid as sender Guid in its ping packets. More... | |
void | DisableRouting (string sourceGuid, string targetGuid) |
Disables routing of received media packets have the sourceGuid as their sender Guid to the client that uses the targetGuid as sender Guid in its ping packets. More... | |
Public Attributes | |
StatusMessage | StatusMessageEvent |
Event for loggable status message events. Published when configuration or status is updated. More... | |
Media broker service core for use with the UdpMediaClientSocket instances. Implements ping reply and simple routing mechanism. Accepts routing configuration packets (ControlPacket). For every guid, there can be a single target guid to which all MediaHeaderPackets and MediaContinuationPackets from that guid are sent. If there is no valid target mapping for the guid specified in a received media packet, the packet is silently ignored.
<author>Veli-Mikko Puupponen</author> This server performs no packet content checking for any media packet. No rules are enforced on the received routing requests. Any client can request routing from and to any other client.
Client routings can also be updated with methods EnableRouting and DisableRouting.
Client address to Guid mappings are kept up-to-date from the ping packets.
UdpMediaRelayServerCore | ( | int | port | ) |
Initializes a new UdpMediaRelayServerCore that uses the specified port number at the local machine to provide media broker services over UDP.
port | Service's UDP port number |
void Disable | ( | ) |
Disable this UdpMediaRelayServerCore and releases the underlying UDP socket. After disabling, this instance will no longer receive or send any packets.
void DisableRouting | ( | string | sourceGuid, |
string | targetGuid | ||
) |
Disables routing of received media packets have the sourceGuid as their sender Guid to the client that uses the targetGuid as sender Guid in its ping packets.
sourceGuid | Guid of the sender |
targetGuid | Guid of the user to whom the media packets with the sourceGuid as a sender Guid are no longer sent |
void Enable | ( | ) |
Enables this UdpMediaRelayServerCore to accept routing packets, to reply to client ping packets and to perform media packet receiving and routing.
void EnableRouting | ( | string | sourceGuid, |
string | targetGuid | ||
) |
Enables routing of received media packets that have the sourceGuid as their sender Guid to the client that uses the targetGuid as sender Guid in its ping packets.
sourceGuid | Guid of a sender |
targetGuid | Guid of the user to whom the media packets with the sourceGuid as a sender Guid are sent |
StatusMessage StatusMessageEvent |
Event for loggable status message events. Published when configuration or status is updated.