Halyri - Server  0.9.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
UdpMediaRelayServerCore Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

UdpMediaRelayServerCore ( int  port)

Initializes a new UdpMediaRelayServerCore that uses the specified port number at the local machine to provide media broker services over UDP.

Parameters
portService's UDP port number

Member Function Documentation

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.

Parameters
sourceGuidGuid of the sender
targetGuidGuid 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.

Parameters
sourceGuidGuid of a sender
targetGuidGuid of the user to whom the media packets with the sourceGuid as a sender Guid are sent

Member Data Documentation

StatusMessage StatusMessageEvent

Event for loggable status message events. Published when configuration or status is updated.


The documentation for this class was generated from the following file: